ladybird/Libraries/LibJS/Tests/statement-with-many-labels.js

10 lines
196 B
JavaScript
Raw Normal View History

test("basic support for statement with many labels", () => {
function foo() {
a: b: c: for (;;) {
break b;
}
return 1;
}
expect(foo()).toBe(1);
});