summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug1246607.js
blob: a1ab106609f699103b254db053158deb524499a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (typeof oomTest !== 'function' || typeof Intl !== 'object')
    quit();

oomTest(() => {
    try {
        new Intl.DateTimeFormat;
        x1 = 0;
    }  catch (e) {
        switch (1) {
            case 0:
                let s;
            case 1:
                x;
        }
    }
})