diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/sequences.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/sequences.js b/test/compress/sequences.js index 10492565..f41b603f 100644 --- a/test/compress/sequences.js +++ b/test/compress/sequences.js @@ -710,3 +710,23 @@ issue_27: { })(jQuery); } } + +issue_2062: { + options = { + booleans: true, + cascade: true, + conditionals: true, + side_effects: true, + } + input: { + var a = 1; + if ([ a || a++ + a--, a++ + a--, a && a.var ]); + console.log(a); + } + expect: { + var a = 1; + a || (a++, a--), a++, --a && a.var; + console.log(a); + } + expect_stdout: "1" +} |