
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
98 B
JavaScript
10 lines
98 B
JavaScript
switch (1 + 2) {
|
|
case 3:
|
|
console.log("PASS");
|
|
break;
|
|
case 5:
|
|
case 1:
|
|
break;
|
|
default:
|
|
break;
|
|
}
|