summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/stream/bug-1513266.js
blob: 5511ce8000cc1d82809da5487f82f8d73cd9a609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| --no-ion; --no-baseline; skip-if: !this.hasOwnProperty("ReadableStream")

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 });