mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 01:22:43 +02:00
Add a test that exercises postfix increment/decrement as the RHS of a logical AND expression, verifying the register allocation matches C++.
5 lines
85 B
JavaScript
5 lines
85 B
JavaScript
function postfixInLogicalAnd(x) {
|
|
return x > 0 && x--;
|
|
}
|
|
postfixInLogicalAnd(5);
|