fix corner case in pure_getters (#4615)

fixes #4614
This commit is contained in:
Alex Lam S.L
2021-02-05 01:03:51 +00:00
committed by GitHub
parent da24dfb59e
commit 739fa266f8
2 changed files with 30 additions and 1 deletions

View File

@@ -918,3 +918,32 @@ issue_4560_3: {
expect_stdout: "PASS"
node_version: ">=6"
}
issue_4614: {
options = {
pure_getters: "strict",
side_effects: true,
}
input: {
try {
(function(...[]) {
var arguments;
arguments[0];
})();
} catch (e) {
console.log("PASS");
}
}
expect: {
try {
(function(...[]) {
var arguments;
arguments[0];
})();
} catch (e) {
console.log("PASS");
}
}
expect_stdout: true
node_version: ">=6"
}