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

gcparam('allocationThreshold', 1);
setGCCallback({
    action: "majorGC",
});
offThreadCompileToStencil(('Boolean.prototype.toString.call(new String())'));
for (let i = 0; i < 10; i++) {
    for (let j = 0; j < 10000; j++) Symbol.for(i + 10 * j);
}
try {
    var stencil = finishOffThreadStencil();
    evalStencil(stencil);
} catch (e) {
    assertEq(e.constructor, TypeError);
}