fix corner case in ie (#5372)

fixes #5370
This commit is contained in:
Alex Lam S.L
2022-03-02 05:52:27 +00:00
committed by GitHub
parent fdbbef2991
commit 104d385ba9
3 changed files with 49 additions and 1 deletions

View File

@@ -1299,3 +1299,27 @@ issue_5360: {
expect_stdout: "PASS"
node_version: ">=8.3.0"
}
issue_5370: {
options = {
dead_code: true,
ie: true,
unused: true,
}
input: {
console.log(function arguments(...a) {
return arguments;
try {} catch (e) {
var arguments;
}
}());
}
expect: {
console.log(function arguments(...a) {
return arguments;
var arguments;
}());
}
expect_stdout: true
node_version: ">=6"
}