Files
ladybird/Tests/LibJS/Bytecode/input/postfix-update-in-logical-and.js
Andreas Kling 17c8a80afc Tests/LibJS: Add bytecode test for postfix update in logical AND
Add a test that exercises postfix increment/decrement as the RHS of a
logical AND expression, verifying the register allocation matches C++.
2026-03-01 21:20:54 +01:00

5 lines
85 B
JavaScript

function postfixInLogicalAnd(x) {
return x > 0 && x--;
}
postfixInLogicalAnd(5);