diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/gc/bug-1574877.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1574877.js b/js/src/jit-test/tests/gc/bug-1574877.js new file mode 100644 index 0000000000..4007b8f4f4 --- /dev/null +++ b/js/src/jit-test/tests/gc/bug-1574877.js @@ -0,0 +1,16 @@ +// |jit-test| skip-if: !('oomTest' in this) + +function parseModule(source) { + offThreadCompileModule(source); + return finishOffThreadModule(); +} +function loadFile(lfVarx) { + oomTest(function() { + parseModule(lfVarx); + }); +} +loadFile(` + expect = new class prototype extends Object { + a43 = function () {} + } +`); |