Merge branch 'master' into harmony-v3.3.5

This commit is contained in:
alexlamsl
2018-01-07 20:35:53 +08:00
30 changed files with 2063 additions and 290 deletions

View File

@@ -1100,3 +1100,31 @@ issue_2692: {
}
expect_stdout: "function"
}
issue_2701: {
options = {
dead_code: true,
inline: false,
}
input: {
function f(a) {
return a = function() {
return function() {
return a;
};
}();
}
console.log(typeof f()());
}
expect: {
function f(a) {
return a = function() {
return function() {
return a;
};
}();
}
console.log(typeof f()());
}
expect_stdout: "function"
}