diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/comparisons.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/comparisons.js b/test/compress/comparisons.js index f93ccbe1..a04498ee 100644 --- a/test/compress/comparisons.js +++ b/test/compress/comparisons.js @@ -123,6 +123,29 @@ self_comparison_3: { ] } +self_comparison_4: { + options = { + booleans: true, + comparisons: true, + reduce_vars: true, + toplevel: true, + unused: true, + } + input: { + var o = {}; + console.log(o == o, o != o); + console.log(o === o, o !== o); + } + expect: { + console.log(!0, !1); + console.log(!0, !1); + } + expect_stdout: [ + "true false", + "true false", + ] +} + issue_2857_1: { options = { comparisons: true, |