Merge branch 'master' into harmony-v3.3.3

This commit is contained in:
alexlamsl
2017-12-29 03:30:53 +08:00
9 changed files with 491 additions and 71 deletions

View File

@@ -1047,3 +1047,30 @@ issue_2597: {
}
expect_stdout: "PASS"
}
issue_2666: {
options = {
dead_code: true,
}
input: {
function f(a) {
return a = {
p: function() {
return a;
}
};
}
console.log(typeof f().p());
}
expect: {
function f(a) {
return a = {
p: function() {
return a;
}
};
}
console.log(typeof f().p());
}
expect_stdout: "object"
}