blob: c325b5ea013a5203225171bee8ace3494229be62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| skip-if: !this.hasOwnProperty("ReadableStream")
let g = newGlobal();
let reader = g.eval(`
let stream = new ReadableStream({
start(controller) {
controller.enqueue([]);
},
});
let [b1, b2] = stream.tee();
b1.getReader();
`);
let read = new ReadableStream({}).getReader().read;
drainJobQueue(); // let the stream be started before reading
read.call(reader);
|