summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1435295.js
blob: 01214a62147584e0f438ea1d8335081408075f3f (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| skip-if: helperThreadCount() === 0 || !('oomTest' in this)

oomTest(new Function(`function execOffThread(source) {
    offThreadCompileModuleToStencil(source);
    var stencil = finishOffThreadStencil();
    return instantiateModuleStencil(stencil);
}
b = execOffThread("[1, 2, 3]")
`));