diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/evaluate.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js index 8425abe2..3f9f1014 100644 --- a/test/compress/evaluate.js +++ b/test/compress/evaluate.js @@ -2418,3 +2418,29 @@ issue_3887: { } expect_stdout: "PASS" } + +issue_3903: { + options = { + evaluate: true, + reduce_vars: true, + toplevel: true, + unused: true, + } + input: { + var a = "PASS"; + function f(b, c) { + return console, c; + } + var d = f(f(), a = a); + console.log(d); + } + expect: { + var a = "PASS"; + function f(b, c) { + return console, c; + } + var d = f(f(), a = a); + console.log(d); + } + expect_stdout: "PASS" +} |