Skip to content

Commit

Permalink
Fix closed getter note
Browse files Browse the repository at this point in the history
The closed getter note for Readers implied the wrong behaviour when the reader was detached. Fixed.

Fixes #912.
  • Loading branch information
surma authored and ricea committed Mar 29, 2018
1 parent cd63477 commit 37ace3d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1300,8 +1300,9 @@ lt="ReadableStreamDefaultReader(stream)">new ReadableStreamDefaultReader(<var>st
<h5 id="default-reader-closed" attribute for="ReadableStreamDefaultReader" lt="closed">get closed</h5>

<div class="note">
The <code>closed</code> getter returns a promise that will be fulfilled when the stream becomes closed or the
reader's lock is <a lt="release a read lock">released</a>, or rejected if the stream ever errors.
The <code>closed</code> 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 <a lt="release a read lock">released</a> before the stream finishes
closing.
</div>

<emu-alg>
Expand Down Expand Up @@ -1442,8 +1443,9 @@ ReadableStreamBYOBReader(<var>stream</var>)</h4>
<h5 id="byob-reader-closed" attribute for="ReadableStreamBYOBReader" lt="closed">get closed</h5>

<div class="note">
The <code>closed</code> getter returns a promise that will be fulfilled when the stream becomes closed or the
reader's lock is <a lt="release a read lock">released</a>, or rejected if the stream ever errors.
The <code>closed</code> 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 <a lt="release a read lock">released</a> before the stream finishes
closing.
</div>

<emu-alg>
Expand Down

0 comments on commit 37ace3d

Please sign in to comment.