aboutsummaryrefslogtreecommitdiff
path: root/test/compress/reduce_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-11-28 14:02:39 +0800
committerGitHub <noreply@github.com>2017-11-28 14:02:39 +0800
commit32def5ebf5c9157937dcf802ce71fb9d1d3bc189 (patch)
treeee0f1b24c8c90e9a75c0a23d47522aebe668e549 /test/compress/reduce_vars.js
parentecc9f6b77093758d78a693a5ac4b6bcaf75e9a3f (diff)
downloadtracifyjs-32def5ebf5c9157937dcf802ce71fb9d1d3bc189.tar.gz
tracifyjs-32def5ebf5c9157937dcf802ce71fb9d1d3bc189.zip
improve synergy between `collapse_vars` & `unused` (#2521)
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 02ff5e43..82b5ad6d 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -972,8 +972,8 @@ inner_var_for_2: {
}
expect: {
!function() {
- a = 1;
- for (var b = 1; --b;) var a = 2;
+ var a = 1;
+ for (var b = 1; --b;) a = 2;
console.log(a);
}();
}