Merge branch 'master' into harmony-v3.3.9

This commit is contained in:
alexlamsl
2018-01-27 20:58:49 +08:00
6 changed files with 86 additions and 5 deletions

View File

@@ -5950,3 +5950,26 @@ issue_2799_2: {
}
expect_stdout: "PASS"
}
issue_2836: {
options = {
reduce_vars: true,
toplevel: true,
unused: true,
}
input: {
function f() {
return "FAIL";
}
console.log(f());
function f() {
return "PASS";
}
}
expect: {
console.log(function() {
return "PASS";
}());
}
expect_stdout: "PASS"
}