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

@@ -818,3 +818,30 @@ issue_2678: {
}
expect_stdout: "PASS"
}
issue_2838: {
options = {
pure_getters: true,
side_effects: true,
}
input: {
function f(a, b) {
(a || b).c = "PASS";
(function() {
return f(a, b);
}).prototype.foo = "bar";
}
var o = {};
f(null, o);
console.log(o.c);
}
expect: {
function f(a, b) {
(a || b).c = "PASS";
}
var o = {};
f(null, o);
console.log(o.c);
}
expect_stdout: "PASS"
}