Merge branch 'master' into harmony-v3.3.8

This commit is contained in:
alexlamsl
2018-01-21 15:35:55 +08:00
26 changed files with 1071 additions and 211 deletions

View File

@@ -897,3 +897,25 @@ toplevel_var: {
}
expect_stdout: "3"
}
undefined_key: {
options = {
evaluate: true,
hoist_props: true,
join_vars: true,
passes: 4,
reduce_vars: true,
toplevel: true,
unused: true,
}
input: {
var a, o = {};
o[a] = 1;
o.b = 2;
console.log(o[a] + o.b);
}
expect: {
console.log(3);
}
expect_stdout: "3"
}