Skip to content

Commit

Permalink
Fix closed getter (fixes #912)
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Mar 28, 2018
1 parent cd63477 commit 82d70f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1300,10 +1300,12 @@ 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 or the stream errors.
</div>


<emu-alg>
1. If ! IsReadableStreamDefaultReader(*this*) is *false*, return <a>a promise rejected with</a> a *TypeError* exception.
1. Return *this*.[[closedPromise]].
Expand Down Expand Up @@ -3531,7 +3533,7 @@ lt="WritableStreamDefaultWriter(stream)">new WritableStreamDefaultWriter(<var>st
<div class="note">
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 writer's lock is <a lt="release a write lock">released</a> before the stream finishes
closing.
closing or the stream errors.
</div>

<emu-alg>
Expand Down

0 comments on commit 82d70f3

Please sign in to comment.