Files
rust_browser/tests/external/js262/fixtures/while-loop-continue.js
Zachary D. Rowitsch feadf268dc Add JavaScript for/while/do-while loops, ++/--, and compound assignment
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>
2026-02-21 17:44:31 -05:00

11 lines
137 B
JavaScript

var sum = 0;
var i = 0;
while (i < 5) {
i = i + 1;
if (i === 3) {
continue;
}
sum = sum + i;
}
console.log(sum);