diff options
Diffstat (limited to 'test/compress/booleans.js')
-rw-r--r-- | test/compress/booleans.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/compress/booleans.js b/test/compress/booleans.js index 9b8c1664..a036a1d0 100644 --- a/test/compress/booleans.js +++ b/test/compress/booleans.js @@ -86,3 +86,27 @@ issue_3465_3: { } expect_stdout: "PASS" } + +issue_2737_2: { + options = { + booleans: true, + inline: true, + reduce_vars: true, + unused: true, + } + input: { + (function(bar) { + for (;bar();) break; + })(function qux() { + return console.log("PASS"), qux; + }); + } + expect: { + (function(bar) { + for (;bar();) break; + })(function() { + return console.log("PASS"), 1; + }); + } + expect_stdout: "PASS" +} |