fix corner case in comparisons (#5486)

fixes #5485
This commit is contained in:
Alex Lam S.L
2022-06-04 17:47:38 +01:00
committed by GitHub
parent ad5f5ef2a3
commit a025392a30
4 changed files with 52 additions and 1 deletions

View File

@@ -2448,3 +2448,17 @@ issue_5465: {
expect_stdout: "PASS"
node_version: ">=6"
}
issue_5485: {
options = {
comparisons: true,
}
input: {
(function f(f, a = console.log(void 0 === f ? "PASS" : "FAIL")) {})();
}
expect: {
(function f(f, a = console.log(void 0 === f ? "PASS" : "FAIL")) {})();
}
expect_stdout: "PASS"
node_version: ">=6"
}