Implement three loop types (for, while, do-while) with break/continue support, increment/decrement operators (prefix/postfix), and compound assignment (+=, -=, *=). Extract heavy execute_stmt match arms into #[inline(never)] helpers to prevent debug-build stack overflow from enlarged stack frames. Promotes 5 JS262 tests from known_fail to pass and adds 8 new conformance fixtures. JS262 suite: 114 pass, 7 known_fail, 1 skip (122 total). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9 lines
99 B
JavaScript
9 lines
99 B
JavaScript
var n = 0;
|
|
while (true) {
|
|
n = n + 1;
|
|
if (n === 4) {
|
|
break;
|
|
}
|
|
}
|
|
console.log(n);
|