Merge branch 'master' into harmony-v3.0.4

This commit is contained in:
alexlamsl
2017-05-12 05:13:11 +08:00
6 changed files with 154 additions and 44 deletions

View File

@@ -1228,3 +1228,28 @@ var_catch_toplevel: {
}();
}
}
reassign_const: {
options = {
cascade: true,
sequences: true,
side_effects: true,
unused: true,
}
input: {
function f() {
const a = 1;
a = 2;
return a;
}
console.log(f());
}
expect: {
function f() {
const a = 1;
return a = 2, a;
}
console.log(f());
}
expect_stdout: true
}