Lines Matching refs:rs
22 const rs = new ReadableStream(); constant
23 new ReadableStreamDefaultReader(rs); // Constructing directly the first time should be fine.
24 assert_throws_js(TypeError, () => new ReadableStreamDefaultReader(rs),
32 const rs = new ReadableStream(); constant
33 new ReadableStreamDefaultReader(rs); // Constructing directly should be fine.
34 assert_throws_js(TypeError, () => rs.getReader(), 'getReader() should fail');
41 const rs = new ReadableStream(); constant
42 rs.getReader(); // getReader() should be fine.
43 …assert_throws_js(TypeError, () => new ReadableStreamDefaultReader(rs), 'constructing directly shou…
49 const rs = new ReadableStream(); constant
50 rs.getReader(); // getReader() should be fine.
51 assert_throws_js(TypeError, () => rs.getReader(), 'getReader() should fail');
57 const rs = new ReadableStream({ constant
63 new ReadableStreamDefaultReader(rs); // Constructing directly should not throw.
70 const rs = new ReadableStream({ constant
76 new ReadableStreamDefaultReader(rs); // Constructing directly should not throw.
83 const rs = new ReadableStream({ constant
88 const reader = rs.getReader();
103 const rs = new ReadableStream({ constant
105 assert_true(rs.locked, 'the stream should still be locked');
106 assert_throws_js(TypeError, () => rs.getReader(), 'should not be able to get another reader');
112 const reader = rs.getReader();
120 const rs = new ReadableStream({ constant
126 const reader = rs.getReader();
137 const rs = new ReadableStream({ constant
143 const reader1 = rs.getReader();
147 const reader2 = rs.getReader();
160 const rs = new ReadableStream({ constant
166 const reader = rs.getReader();
186 const rs = new ReadableStream({ constant
192 const reader = rs.getReader();
210 const rs = new ReadableStream({ constant
218 const reader1 = rs.getReader();
224 const reader2 = rs.getReader();
235 const rs = new ReadableStream({ constant
241 const reader1 = rs.getReader();
244 const reader2 = rs.getReader();
258 const rs = new ReadableStream({ constant
267 const reader = rs.getReader();
271 const reader2 = rs.getReader();
289 const rs = new ReadableStream({ constant
295 const reader1 = rs.getReader();
302 …assert_throws_js(TypeError, () => rs.getReader(), 'trying to get another reader before erroring sh…
308 const reader2 = rs.getReader();
322 const rs = new ReadableStream({ constant
328 const promise = rs.getReader().closed.then(
343 const rs = new ReadableStream({ constant
349 return rs.getReader().read().then(
363 const rs = new ReadableStream({ constant
369 const promise = promise_rejects_exactly(t, theError, rs.getReader().closed);
380 const rs = new ReadableStream({ constant
389 rs.getReader().releaseLock();
391 return promise_rejects_exactly(t, theError, rs.getReader().closed);
398 const rs = new ReadableStream({ constant
403 const reader = rs.getReader();
423 const rs = new ReadableStream({ constant
430 const reader = rs.getReader();
447 const rs = new ReadableStream({ constant
456 const reader = rs.getReader();
469 const rs = new ReadableStream({ constant
476 const reader = rs.getReader();
490 const rs = new ReadableStream(); constant
498 assert_throws_js(TypeError, () => rs.getReader({ mode }), 'getReader() should throw');
503 const rs = new ReadableStream({ constant
509 const reader = rs.getReader();
519 const rs = new ReadableStream({ constant
525 const reader1 = rs.getReader();
531 const reader2 = rs.getReader();