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

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