summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/oomInOffTheadCompile.js
blob: d4e0d4135efaec70b23857022eff92221ccd312a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| skip-if: !('oomTest' in this) || helperThreadCount() === 0

oomTest(() => {
    offThreadCompileToStencil(
        `
        function f(x) {
            if (x == 0)
                return "foobar";
            return 1 + f(x - 1);
        }
        f(5);
        `);
    var stencil = finishOffThreadStencil();
    evalStencil(stencil);
});