aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-637.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/issue-637.js
parent5a1e99d713fd0ca4ca4a012422a767c138a75606 (diff)
downloadtracifyjs-09b320e8a5ec85410bf323573b76f2da7e08e2ee.tar.gz
tracifyjs-09b320e8a5ec85410bf323573b76f2da7e08e2ee.zip
convert to number under boolean context (#2545)
Diffstat (limited to 'test/compress/issue-637.js')
-rw-r--r--test/compress/issue-637.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compress/issue-637.js b/test/compress/issue-637.js
index 45fd2481..ed42cb8e 100644
--- a/test/compress/issue-637.js
+++ b/test/compress/issue-637.js
@@ -17,6 +17,6 @@ wrongly_optimized: {
foo();
}
// TODO: optimize to `func(), bar()`
- (func(), 0) || bar();
+ (func(), 1) && bar();
}
}