1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

LibJS: Add support for "continue" inside "for" statements :^)

This commit is contained in:
Andreas Kling 2020-04-05 00:22:42 +02:00
parent e3b92caa6d
commit 9ebd066ac8
Notes: sideshowbarker 2024-07-19 07:55:21 +09:00
8 changed files with 65 additions and 1 deletions

View file

@ -0,0 +1,14 @@
function assert(x) { if (!x) throw 1; }
try {
var j = 0;
for (var i = 0; i < 9; ++i) {
if (i == 3)
continue;
++j;
}
assert(j == 8);
console.log("PASS");
} catch {
}