summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/switch-default-before-case.js
blob: 409e84de8bfa1314897121ea67d317a9c82f6746 (plain)
1
2
3
4
5
6
7
8
9
test("default clause before matching case clause", () => {
    switch (1 + 2) {
        default:
            expect().fail();
            break;
        case 3:
            return;
    }
});