fix corner case in sequences (#4080)

fixes #4079
This commit is contained in:
Alex Lam S.L
2020-08-26 13:41:11 +01:00
committed by GitHub
parent 3aa765e429
commit b1cc15e85b
2 changed files with 66 additions and 43 deletions

View File

@@ -1155,3 +1155,25 @@ issue_3703: {
}
expect_stdout: "PASS"
}
issue_4079: {
options = {
sequences: true,
side_effects: true,
}
input: {
try {
typeof (0, A);
} catch (e) {
console.log("PASS");
}
}
expect: {
try {
A;
} catch (e) {
console.log("PASS");
}
}
expect_stdout: "PASS"
}