Incorrect result for n + ++n compared with V8
Author: wyattzhengCreated Oct 1, 2026Updated Oct 1, 2026
Reproduced with unmodified boa_engine 0.22.0.
(()=>{var n=1;return n + ++n})()- Boa:
4 - V8 (Chromium):
3
Expected: 3, matching V8. The left operand should retain its value before ++n is evaluated.
Source: boa-dev/boa