aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-09-22 05:11:25 +0100
committerGitHub <noreply@github.com>2020-09-22 12:11:25 +0800
commit3cca0d624980e78db2c38ffaebdac53933be68fa (patch)
treeddc6b61a2a31e9e356dddb4fb07de899a071a97d /test
parent12ac49b970f272f76f76fcfa954306ab821b9ac9 (diff)
downloadtracifyjs-3cca0d624980e78db2c38ffaebdac53933be68fa.tar.gz
tracifyjs-3cca0d624980e78db2c38ffaebdac53933be68fa.zip
fix corner case in `evaluate` (#4143)
fixes #4142
Diffstat (limited to 'test')
-rw-r--r--test/compress/numbers.js13
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"
+}