diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-12 14:57:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-12 14:57:41 +0800 |
commit | c391576d52852322a7fcfbaeabc9d5626e628c8b (patch) | |
tree | e0f27ac065ec9340bcd5bcd152f8714cf79fdcc9 /test/compress/reduce_vars.js | |
parent | ac73c5d4211b9ecff0f9650a032e964ef1cad585 (diff) | |
download | tracifyjs-c391576d52852322a7fcfbaeabc9d5626e628c8b.tar.gz tracifyjs-c391576d52852322a7fcfbaeabc9d5626e628c8b.zip |
remove support for `const` (#1910)
As this is not part of ES5.
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r-- | test/compress/reduce_vars.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js index d3b3d425..a0433b5d 100644 --- a/test/compress/reduce_vars.js +++ b/test/compress/reduce_vars.js @@ -2190,10 +2190,11 @@ issue_1814_1: { options = { evaluate: true, reduce_vars: true, + toplevel: true, unused: true, } input: { - const a = 42; + var a = 42; !function() { var b = a; !function(a) { @@ -2202,7 +2203,6 @@ issue_1814_1: { }(); } expect: { - const a = 42; !function() { !function(a) { console.log(a++, 42); @@ -2216,10 +2216,11 @@ issue_1814_2: { options = { evaluate: true, reduce_vars: true, + toplevel: true, unused: true, } input: { - const a = "32"; + var a = "32"; !function() { var b = a + 1; !function(a) { @@ -2228,7 +2229,6 @@ issue_1814_2: { }(); } expect: { - const a = "32"; !function() { !function(a) { console.log(a++, "321"); |