diff --git a/index.bs b/index.bs index 1941253dd..12511840d 100644 --- a/index.bs +++ b/index.bs @@ -1300,10 +1300,12 @@ lt="ReadableStreamDefaultReader(stream)">new ReadableStreamDefaultReader(st
get closed
- The closed getter returns a promise that will be fulfilled when the stream becomes closed or the - reader's lock is released, or rejected if the stream ever errors. + The closed getter returns a promise that will be fulfilled when the stream becomes closed, or rejected if + the stream ever errors or the reader's lock is released before the stream finishes + closing or the stream errors.
+ 1. If ! IsReadableStreamDefaultReader(*this*) is *false*, return a promise rejected with a *TypeError* exception. 1. Return *this*.[[closedPromise]]. @@ -3531,7 +3533,7 @@ lt="WritableStreamDefaultWriter(stream)">new WritableStreamDefaultWriter(st
The closed getter returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or the writer's lock is released before the stream finishes - closing. + closing or the stream errors.