fix corner case in ie8 (#4232)

fixes #4231
This commit is contained in:
Alex Lam S.L
2020-10-20 07:02:39 +01:00
committed by GitHub
parent 256950c2c0
commit fd8c0212b8
4 changed files with 46 additions and 6 deletions

View File

@@ -871,3 +871,25 @@ issue_4229: {
expect_stdout: "PASS"
node_version: ">=4"
}
issue_4231: {
options = {
ie8: true,
side_effects: true,
}
input: {
"use strict";
typeof a == 0;
console.log(typeof function a() {
let a;
});
}
expect: {
"use strict";
console.log(typeof function a() {
let a;
});
}
expect_stdout: "function"
node_version: ">=4"
}