diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/loops.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js index c16fa5bd..acbc8269 100644 --- a/test/compress/loops.js +++ b/test/compress/loops.js @@ -1255,3 +1255,28 @@ issue_4240: { } expect_stdout: "PASS" } + +issue_4355: { + options = { + dead_code: true, + evaluate: true, + loops: true, + side_effects: true, + unused: true, + } + input: { + while (function() { + var a; + for (a in console.log("PASS")) + var b = 0; + }()) + var c; + } + expect: { + (function() { + console.log("PASS"); + })(); + var c; + } + expect_stdout: "PASS" +} |