summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1667336.js
blob: 11b1fd456deabf885dbdd1ef464ba0a0a4fa15ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| --ion-offthread-compile=off; skip-if: helperThreadCount() === 0

var g = newGlobal();
gczeal(9, 1);
gczeal(11, 2);
g.offThreadCompileToStencil("");
setJitCompilerOption("offthread-compilation.enable", 1);

for (let i = 0 ; i < 3000; i++) {
  loadFile();
}

function loadFile() {
  try {
    x;
  } catch(exc) {}
}