diff options
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1439284.js')
-rw-r--r-- | js/src/jit-test/tests/gc/bug-1439284.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1439284.js b/js/src/jit-test/tests/gc/bug-1439284.js new file mode 100644 index 0000000000..4e6bcd11b0 --- /dev/null +++ b/js/src/jit-test/tests/gc/bug-1439284.js @@ -0,0 +1,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); +} |