summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1240527.js
blob: 7bdccf01858b1b01e1a6194dad6367eaf48af739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if (typeof offThreadCompileScript !== 'function' ||
    typeof runOffThreadScript !== 'function' ||
    typeof oomTest !== 'function' ||
    typeof fullcompartmentchecks !== 'function' ||
    helperThreadCount() === 0)
{
    quit(0);
}

offThreadCompileScript(`
 oomTest(() => "".search(/d/));
 fullcompartmentchecks(3);
`);
runOffThreadScript();