fix corner case in side_effects (#4752)

fixes #4751
This commit is contained in:
Alex Lam S.L
2021-03-07 20:19:51 +00:00
committed by GitHub
parent 31e7d25cad
commit f52b0e7c31
9 changed files with 277 additions and 45 deletions

View File

@@ -2923,13 +2923,14 @@ issue_4568: {
issue_4729: {
options = {
ie8: true,
pure_getters: true,
toplevel: true,
unused: true,
}
input: {
try {
f;
} catch(e) {
} catch (e) {
var a = a && a[function f() {}];
console.log("PASS");
}
@@ -2937,7 +2938,7 @@ issue_4729: {
expect: {
try {
f;
} catch(e) {
} catch (e) {
(function f() {});
console.log("PASS");
}