Lines Matching refs:stream
169 }, 'when sink\'s write throws an error, the stream should become errored and the promise should reject');
229 const stream = recordingWritableStream();
230 const w = stream.getWriter();
233 const writer = new WritableStreamDefaultWriter(stream);
236 assert_array_equals(stream.events, ['write', 'a'], 'write() should be passed to sink');
256 const stream = new WritableStream();
257 const writer = stream.getWriter();
259 assert_throws_js(TypeError, () => new WritableStreamDefaultWriter(stream),
260 'should not be able to construct on locked stream');
261 // If stream.[[writer]] no longer points to |writer| then the closed Promise
277 }, 'write() on a stream with HWM 0 should not cause the ready Promise to resolve');