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

gcparam('allocationThreshold', 1);
setGCCallback({
    action: "majorGC",
});
offThreadCompileScript(('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 {
    runOffThreadScript();
} catch (e) {
    assertEq(e.constructor, TypeError);
}