enhance evaluate & inline (#3580)

This commit is contained in:
Alex Lam S.L
2019-11-13 04:17:09 +08:00
committed by GitHub
parent 0d17c5b0fa
commit d6fd18d0b0
7 changed files with 45 additions and 37 deletions

View File

@@ -1458,7 +1458,7 @@ collapse_vars_constants: {
function f3(x) {
var b = x.prop;
sideeffect1();
return b + (function() { return -9; })();
return b + -9;
}
}
}
@@ -5748,7 +5748,7 @@ issue_3215_1: {
}());
}
expect: {
console.log("number");
console.log(typeof 42);
}
expect_stdout: "number"
}