summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/stream/bug-1513266.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/stream/bug-1513266.js')
-rw-r--r--js/src/jit-test/tests/stream/bug-1513266.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/stream/bug-1513266.js b/js/src/jit-test/tests/stream/bug-1513266.js
new file mode 100644
index 0000000000..f6a2df01f2
--- /dev/null
+++ b/js/src/jit-test/tests/stream/bug-1513266.js
@@ -0,0 +1,16 @@
+// |jit-test| --no-ion; --no-baseline; skip-if: !('oomTest' in this)
+
+ignoreUnhandledRejections();
+
+function test() {
+ let controller;
+ let stream = new ReadableStream({
+ start(c) {}
+ });
+ stream.getReader();
+ drainJobQueue();
+}
+
+// Force lazy parsing to happen before oomTest starts (see `help(oomTest)`).
+test();
+oomTest(test, {verbose: true, keepFailing: false});