improve reduce_vars (#3112)

fixes #3110
This commit is contained in:
Alex Lam S.L
2018-05-02 15:11:45 +08:00
committed by GitHub
parent 6fcbd5e217
commit 1a314e9f60
3 changed files with 191 additions and 42 deletions

View File

@@ -90,17 +90,11 @@ typeof_defun_1: {
"function" == typeof h && h();
}
expect: {
function g() {
h = 42;
console.log("NOPE");
}
function h() {
console.log("YUP");
}
g = 42;
console.log("YES");
"function" == typeof g && g();
"function" == typeof h && h();
h();
}
expect_stdout: [
"YES",