Merge branch 'master' into harmony-v3.3.4

This commit is contained in:
alexlamsl
2017-12-31 00:05:32 +08:00
4 changed files with 32 additions and 8 deletions

View File

@@ -1074,3 +1074,29 @@ issue_2666: {
}
expect_stdout: "object"
}
issue_2692: {
options = {
dead_code: true,
reduce_vars: false,
}
input: {
function f(a) {
return a = g;
function g() {
return a;
}
}
console.log(typeof f()());
}
expect: {
function f(a) {
return a = g;
function g() {
return a;
}
}
console.log(typeof f()());
}
expect_stdout: "function"
}