aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-208.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-05-12 14:57:41 +0800
committerGitHub <noreply@github.com>2017-05-12 14:57:41 +0800
commitc391576d52852322a7fcfbaeabc9d5626e628c8b (patch)
treee0f27ac065ec9340bcd5bcd152f8714cf79fdcc9 /test/compress/issue-208.js
parentac73c5d4211b9ecff0f9650a032e964ef1cad585 (diff)
downloadtracifyjs-c391576d52852322a7fcfbaeabc9d5626e628c8b.tar.gz
tracifyjs-c391576d52852322a7fcfbaeabc9d5626e628c8b.zip
remove support for `const` (#1910)
As this is not part of ES5.
Diffstat (limited to 'test/compress/issue-208.js')
-rw-r--r--test/compress/issue-208.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compress/issue-208.js b/test/compress/issue-208.js
index fb9861f6..faaf4139 100644
--- a/test/compress/issue-208.js
+++ b/test/compress/issue-208.js
@@ -38,7 +38,7 @@ mixed: {
}
}
input: {
- const ENV = 3;
+ var ENV = 3;
var FOO = 4;
f(ENV * 10);
--FOO;
@@ -49,7 +49,7 @@ mixed: {
x = DEBUG;
}
expect: {
- const ENV = 3;
+ var ENV = 3;
var FOO = 4;
f(10);
--FOO;
@@ -60,7 +60,7 @@ mixed: {
x = 0;
}
expect_warnings: [
- 'WARN: global_defs ENV redefined [test/compress/issue-208.js:41,14]',
+ 'WARN: global_defs ENV redefined [test/compress/issue-208.js:41,12]',
'WARN: global_defs FOO redefined [test/compress/issue-208.js:42,12]',
'WARN: global_defs FOO redefined [test/compress/issue-208.js:44,10]',
'WARN: global_defs DEBUG redefined [test/compress/issue-208.js:45,8]',