fix corner case in comparisons (#3414)

fixes #3413
This commit is contained in:
Alex Lam S.L
2019-05-15 01:01:18 +08:00
committed by GitHub
parent f87caac9d8
commit 1f0def10eb
2 changed files with 19 additions and 2 deletions

View File

@@ -380,3 +380,20 @@ unsafe_indexOf: {
}
expect_stdout: "PASS"
}
issue_3413: {
options = {
comparisons: true,
evaluate: true,
side_effects: true,
}
input: {
var b;
void 0 !== ("" < b || void 0) || console.log("PASS");
}
expect: {
var b;
void 0 !== ("" < b || void 0) || console.log("PASS");
}
expect_stdout: "PASS"
}