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

try {
    // This will fail with --no-threads.
    verifyprebarriers();
    var lfGlobal = newGlobal();
    lfGlobal.offThreadCompileScript(`
      version(185);
    `);
}
catch (e) {
    quit(0);
}