mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 09:45:06 +00:00

The "break" keyword now unwinds to the nearest ScopeType::Breakable. There's no support for break labels yet, but we'll get there too.
10 lines
115 B
JavaScript
10 lines
115 B
JavaScript
var a = "foo";
|
|
|
|
switch (a + "bar") {
|
|
case 1:
|
|
break;
|
|
case "foobar":
|
|
case 2:
|
|
console.log("PASS");
|
|
break;
|
|
}
|