fix corner case in ie8 (#5040)

fixes #5039
This commit is contained in:
Alex Lam S.L
2021-06-29 19:14:07 +01:00
committed by GitHub
parent 798121c9f3
commit 4ba8b66c5a
2 changed files with 29 additions and 5 deletions

View File

@@ -305,3 +305,25 @@ issue_4947_2: {
expect_stdout: "PASS"
node_version: ">=14"
}
issue_5039: {
options = {
ie8: true,
side_effects: true,
toplevel: true,
unused: true,
}
input: {
var a = a?.[function f() {
f;
a;
}];
console.log("PASS");
}
expect: {
(function f() {});
console.log("PASS");
}
expect_stdout: "PASS"
node_version: ">=14"
}