
This is a curious thing that occurs more often than you'd think in minified JavaScript: a: b: c: for (...) { ... break b; ... }
9 lines
196 B
JavaScript
9 lines
196 B
JavaScript
test("basic support for statement with many labels", () => {
|
|
function foo() {
|
|
a: b: c: for (;;) {
|
|
break b;
|
|
}
|
|
return 1;
|
|
}
|
|
expect(foo()).toBe(1);
|
|
});
|