summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1324512.js
blob: b5720f742a2b9909c75bf1c13adcb5eab513e8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (helperThreadCount() === 0)
    quit();

evalInWorker(`
    if (!('gczeal' in this))
        quit();
    try {
      gczeal(2,1);
      throw new Error();
    } catch (e) {
      assertEq("" + e, "Error");
    }
`);