diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-09-22 05:11:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 12:11:25 +0800 |
commit | 3cca0d624980e78db2c38ffaebdac53933be68fa (patch) | |
tree | ddc6b61a2a31e9e356dddb4fb07de899a071a97d /test | |
parent | 12ac49b970f272f76f76fcfa954306ab821b9ac9 (diff) | |
download | tracifyjs-3cca0d624980e78db2c38ffaebdac53933be68fa.tar.gz tracifyjs-3cca0d624980e78db2c38ffaebdac53933be68fa.zip |
fix corner case in `evaluate` (#4143)
fixes #4142
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/numbers.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/compress/numbers.js b/test/compress/numbers.js index 7f355a12..c7aab685 100644 --- a/test/compress/numbers.js +++ b/test/compress/numbers.js @@ -1322,3 +1322,16 @@ issue_4137: { } expect_stdout: "0" } + +issue_4142: { + options = { + evaluate: true, + } + input: { + console.log("" + +(0 === console)); + } + expect: { + console.log("" + +(0 === console)); + } + expect_stdout: "0" +} |