diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/evaluate.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js index d40880f3..0d26982c 100644 --- a/test/compress/evaluate.js +++ b/test/compress/evaluate.js @@ -1360,3 +1360,17 @@ issue_2535_3: { "WARN: Condition left of || always true [test/compress/evaluate.js:1341,20]", ] } + +issue_2822: { + options = { + evaluate: true, + unsafe: true, + } + input: { + console.log([ function() {}, "PASS", "FAIL" ][1]); + } + expect: { + console.log("PASS"); + } + expect_stdout: "PASS" +} |