fix corner cases in collapse_vars (#4591)

fixes #4590
This commit is contained in:
Alex Lam S.L
2021-01-24 14:15:43 +00:00
committed by GitHub
parent a36c5472d2
commit fd7ad8e779
5 changed files with 32 additions and 2 deletions

View File

@@ -44,3 +44,19 @@ Number: {
expect_stdout: "-1148098955808013200"
node_version: ">=10"
}
issue_4590: {
options = {
collapse_vars: true,
}
input: {
A = 1;
0n || console.log("PASS");
}
expect: {
A = 1;
0n || console.log("PASS");
}
expect_stdout: "PASS"
node_version: ">=10"
}