Debian Codegraph @

js/src/jit-test/tests/gc/bug-1439284.js

raw
1 // |jit-test| skip-if: helperThreadCount() === 0
2
3 gcparam('allocationThreshold', 1);
4 setGCCallback({
5 action: "majorGC",
6 });
7 offThreadCompileToStencil(('Boolean.prototype.toString.call(new String())'));
8 for (let i = 0; i < 10; i++) {
9 for (let j = 0; j < 10000; j++) Symbol.for(i + 10 * j);
10 }
11 try {
12 var stencil = finishOffThreadStencil();
13 evalStencil(stencil);
14 } catch (e) {
15 assertEq(e.constructor, TypeError);
16 }