fix corner case in ie (#5652)

fixes #5651
This commit is contained in:
Alex Lam S.L
2022-09-08 03:49:40 +01:00
committed by GitHub
parent 4e4a2f8ed3
commit 5b5f6e329c
3 changed files with 53 additions and 2 deletions

View File

@@ -3844,3 +3844,28 @@ issue_5573: {
]
node_version: ">=6"
}
issue_5651: {
options = {
ie: true,
unused: true,
}
input: {
console.log(function arguments({}) {
try {} catch (arguments) {
var arguments;
}
return arguments[0];
}("PASS"));
}
expect: {
console.log(function arguments({}) {
try {} catch (arguments) {
var arguments;
}
return arguments[0];
}("PASS"));
}
expect_stdout: true
node_version: ">=6"
}