Revert "remove support for const (#1910)"

This reverts commit c391576d52.
This commit is contained in:
alexlamsl
2017-05-15 18:38:16 +08:00
parent ff526be61d
commit cd6e849555
20 changed files with 591 additions and 36 deletions

View File

@@ -120,7 +120,7 @@ mixed: {
properties: true,
}
input: {
var FOO = { BAR: 0 };
const FOO = { BAR: 0 };
console.log(FOO.BAR);
console.log(++CONFIG.DEBUG);
console.log(++CONFIG.VALUE);
@@ -130,7 +130,7 @@ mixed: {
console.log(CONFIG);
}
expect: {
var FOO = { BAR: 0 };
const FOO = { BAR: 0 };
console.log("moo");
console.log(++CONFIG.DEBUG);
console.log(++CONFIG.VALUE);