aboutsummaryrefslogtreecommitdiff
path: root/test/compress/typeof.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-12-01 12:52:36 +0800
committerGitHub <noreply@github.com>2017-12-01 12:52:36 +0800
commit09b320e8a5ec85410bf323573b76f2da7e08e2ee (patch)
treeff9ab90c53922d43b709f79c8bb0e6c53ece4219 /test/compress/typeof.js
parent5a1e99d713fd0ca4ca4a012422a767c138a75606 (diff)
downloadtracifyjs-09b320e8a5ec85410bf323573b76f2da7e08e2ee.tar.gz
tracifyjs-09b320e8a5ec85410bf323573b76f2da7e08e2ee.zip
convert to number under boolean context (#2545)
Diffstat (limited to 'test/compress/typeof.js')
-rw-r--r--test/compress/typeof.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/typeof.js b/test/compress/typeof.js
index 60f3d1d0..34949fbe 100644
--- a/test/compress/typeof.js
+++ b/test/compress/typeof.js
@@ -44,7 +44,7 @@ typeof_in_boolean_context: {
function f2() { return g(), "Yes"; }
foo();
console.log(1);
- var a = !(console.log(2), !0);
+ var a = !(console.log(2), 1);
foo();
}
}
@@ -57,6 +57,6 @@ issue_1668: {
if (typeof bar);
}
expect: {
- if (!0);
+ if (1);
}
}