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

@@ -76,14 +76,12 @@ self_comparison_1: {
comparisons: true,
}
input: {
var a, b;
a === a;
a !== b;
b.c === a.c;
b.c !== b.c;
}
expect: {
var a, b;
a == a;
a !== b;
b.c === a.c;