convert to number under boolean context (#2545)
This commit is contained in:
@@ -2347,7 +2347,7 @@ booleans: {
|
||||
}
|
||||
expect: {
|
||||
console.log(function(a) {
|
||||
if (!1);
|
||||
if (0);
|
||||
switch (!1) {
|
||||
case 0:
|
||||
return "FAIL";
|
||||
|
||||
Reference in New Issue
Block a user