fix corner cases in sequences (#4690)

fixes #4689
This commit is contained in:
Alex Lam S.L
2021-02-25 04:48:40 +00:00
committed by GitHub
parent 822b1da5d2
commit 6d7ab63a66
3 changed files with 41 additions and 3 deletions

View File

@@ -1434,3 +1434,23 @@ issue_4527: {
}
expect_stdout: "aaaa"
}
issue_4689: {
options = {
sequences: true,
}
input: {
"use strict";
var a = "PASS";
console.log(a);
for (const a in 42);
}
expect: {
"use strict";
var a = "PASS";
console.log(a);
for (const a in 42);
}
expect_stdout: "PASS"
node_version: ">=4"
}