summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/bug1242840.js
blob: 31fe1c27fba8512d12a933a663a203d0f480e2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (!('oomTest' in this))
    quit();

enableSPSProfiling();
oomTest(() => {
    try {
        for (quit of ArrayBuffer);
    } catch (e) {
        switch (1) {
            case 0:
                let x
            case 1:
                (function() x)()
        }
    }
})