diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/drop-unused.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js index eadf279a..219adc9e 100644 --- a/test/compress/drop-unused.js +++ b/test/compress/drop-unused.js @@ -2945,3 +2945,23 @@ issue_4133: { } expect_stdout: "0" } + +issue_4144: { + options = { + keep_fargs: "strict", + reduce_vars: true, + unused: true, + } + input: { + (function(a, b) { + var b = console, c = ++b; + })(console.log("PASS"), 0); + } + expect: { + (function(b) { + b = console, + ++b; + })(console.log("PASS")); + } + expect_stdout: "PASS" +} |