From 8287e6ca93adcc8cf8568eb7a0b3c9407e7fefca Mon Sep 17 00:00:00 2001 From: Surma Date: Wed, 28 Mar 2018 15:00:29 +0100 Subject: [PATCH] Fix closed getter note (fixes #912) --- index.bs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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.