aboutsummaryrefslogtreecommitdiff
path: root/test/compress/reduce_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-09-19 18:45:52 +0100
committerGitHub <noreply@github.com>2020-09-20 01:45:52 +0800
commit3c609e2f4a925b3c47bfa2b9185a353295f353b3 (patch)
treed696a42ca1da86111822ca0d79a797326fbc8090 /test/compress/reduce_vars.js
parentf0ae03ed3933fb967921924dc524f4cca8587ce4 (diff)
downloadtracifyjs-3c609e2f4a925b3c47bfa2b9185a353295f353b3.tar.gz
tracifyjs-3c609e2f4a925b3c47bfa2b9185a353295f353b3.zip
enhance `unused` (#4129)
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r--test/compress/reduce_vars.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index c911efe0..153ac5d4 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -120,7 +120,7 @@ modified: {
expect: {
function f0() {
var b = 2;
- b++;
+ +b;
console.log(2);
console.log(4);
}
@@ -5590,7 +5590,7 @@ lvalues_def_1: {
}
expect: {
var b = 1;
- var a = b++, b = NaN;
+ var a = +b, b = NaN;
console.log(a, b);
}
expect_stdout: "1 NaN"