summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1236476.js
blob: f9f2b3d5c76ece830863e1f1df35016071e72902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| allow-oom; allow-unhandlable-oom
// 1236476

if (typeof oomTest !== 'function' ||
    typeof offThreadCompileScript !== 'function' ||
    typeof runOffThreadScript !== 'function')
    quit();

oomTest(() => {
    offThreadCompileScript(`
      "use asm";
      return assertEq;
    `);
    runOffThreadScript();
});