diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/evaluate.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js index 8ef1a466..7466d63b 100644 --- a/test/compress/evaluate.js +++ b/test/compress/evaluate.js @@ -3094,3 +3094,26 @@ issue_4393: { } expect_stdout: "PASS" } + +issue_4422: { + options = { + evaluate: true, + reduce_vars: true, + unused: true, + } + input: { + console.log(function f(a) { + a = "FAIL 1"; + arguments[0] = "PASS"; + return a; + }("FAIL 2")); + } + expect: { + console.log(function(a) { + a = "FAIL 1"; + arguments[0] = "PASS"; + return a; + }("FAIL 2")); + } + expect_stdout: "PASS" +} |