From 37ace3d5f16cbea7aec4a0c80532c95059994d51 Mon Sep 17 00:00:00 2001 From: Surma Date: Thu, 29 Mar 2018 11:36:24 +0100 Subject: [PATCH] Fix closed getter note The closed getter note for Readers implied the wrong behaviour when the reader was detached. Fixed. Fixes #912. --- index.bs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.bs b/index.bs index 1941253dd..479a2d76f 100644 --- a/index.bs +++ b/index.bs @@ -1300,8 +1300,9 @@ 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.
@@ -1442,8 +1443,9 @@ ReadableStreamBYOBReader(stream)
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.