diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-11-28 14:02:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 14:02:39 +0800 |
commit | 32def5ebf5c9157937dcf802ce71fb9d1d3bc189 (patch) | |
tree | ee0f1b24c8c90e9a75c0a23d47522aebe668e549 /test/compress/reduce_vars.js | |
parent | ecc9f6b77093758d78a693a5ac4b6bcaf75e9a3f (diff) | |
download | tracifyjs-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.js | 4 |
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); }(); } |