summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/oomInOffTheadCompile3.js
blob: 5e0816f57550c2d77adea6772587512799a17a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| skip-if: helperThreadCount() === 0

oomTest(() => {
    offThreadCompileToStencil(`
        function f(x) {
            class of extends ("ABCDEFGHIJK") {
                test() { return true; };
                static get() {};
                static get() {};
            }
            return 1 + f(x - 1);
        }
        return g("try{}catch(e){}", n);
        `);
    var stencil = finishOffThreadStencil();
    evalStencil(stencil);
});