File: issue-1545.js

package info (click to toggle)
node-terser 5.46.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 4,248 kB
  • sloc: javascript: 101,516; makefile: 52; perl: 48; sh: 13
file content (18 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
issue_1545: {
    options = {
        evaluate: true,
        unused: true,
        side_effects: true,
        toplevel: true, 
    }
    input: {
        console.assert(true, "This should be removed");
        console.assert(1, "This should be removed too");
        console.assert(false, "This should remain");
        console.assert(0, "This should remain as well");
    }
    expect: {
        console.assert(false, "This should remain");
        console.assert(0, "This should remain as well");
    }
}