Issue #1894 - Follow-up: Fix return value ordering in IonMonkey nullish coalescing

This commit is contained in:
Martok 2023-04-25 10:08:03 +02:00 committed by roytam1
commit aece6260fb

View file

@ -4443,7 +4443,7 @@ IonBuilder::jsop_logical(JSOp op)
MIsNullOrUndefined* isNullOrUndefined =
MIsNullOrUndefined::New(alloc(), lhs);
current->add(isNullOrUndefined);
test = newTest(isNullOrUndefined, evalLhs, evalRhs);
test = newTest(isNullOrUndefined, evalRhs, evalLhs);
break;
}