diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/numbers.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/numbers.js b/test/compress/numbers.js index fdfb6c2f..e6f6ce23 100644 --- a/test/compress/numbers.js +++ b/test/compress/numbers.js @@ -1215,3 +1215,21 @@ issue_3682_3: { } expect_stdout: "-Infinity" } + +issue_3684: { + options = { + evaluate: true, + } + input: { + console.log(1 / (-1 * (0 & console) + 0)); + console.log(1 / ((0 & console) / -1 + 0)); + } + expect: { + console.log(1 / (-1 * (0 & console) + 0)); + console.log(1 / ((0 & console) / -1 + 0)); + } + expect_stdout: [ + "Infinity", + "Infinity", + ] +} |