fix corner cases in booleans & conditionals (#5695)

fixes #5694
This commit is contained in:
Alex Lam S.L
2022-10-03 15:47:15 +01:00
committed by GitHub
parent 140e4e0da8
commit dabcc39b51
5 changed files with 64 additions and 27 deletions

View File

@@ -830,3 +830,20 @@ issue_5469: {
}
expect_stdout: "undefined"
}
issue_5694: {
options = {
booleans: true,
conditionals: true,
}
input: {
var undefined;
// Node.js v0.12~6 (vm): 42
console.log((undefined = 42) && undefined);
}
expect: {
var undefined;
console.log((undefined = 42) && undefined);
}
expect_stdout: true
}