summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/statement-with-many-labels.js
blob: 534811252e7dc455d788bafa9ebb8dd358d45610 (plain)
1
2
3
4
5
6
7
8
9
test("basic support for statement with many labels", () => {
    function foo() {
        a: b: c: for (;;) {
            break b;
        }
        return 1;
    }
    expect(foo()).toBe(1);
});