diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-01-16 01:51:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 01:51:37 +0800 |
commit | 41a6eb892a89eef1a6a238e2ce5bc36b86cf4fee (patch) | |
tree | 006cfe5aa74b4f87b94581d4b55b8621f18ad2b9 /test | |
parent | 91d87ae6633ba66706df32e8b955061c0e9d788f (diff) | |
download | tracifyjs-41a6eb892a89eef1a6a238e2ce5bc36b86cf4fee.tar.gz tracifyjs-41a6eb892a89eef1a6a238e2ce5bc36b86cf4fee.zip |
fix corner case in `evaluate` (#3685)
fixes #3684
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", + ] +} |