Skip to content

Commit

Permalink
Fix ErrorReadableStream algorithm
Browse files Browse the repository at this point in the history
A step to return is missing and the following step is wrongly indented.

Fixes #387
  • Loading branch information
tyoshino committed Aug 6, 2015
1 parent 427b762 commit 7b79d3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -968,9 +968,9 @@ an assert).
1. Set _stream_@[[storedError]] to _e_.
1. Set _stream_@[[state]] to "errored".
1. Let _reader_ be _stream_@[[reader]].
1. If _reader_ is *undefined*,
1. Repeat for each _readRequestPromise_ that is an element of _reader_@[[readRequests]],
1. Reject _readRequestPromise_ with _e_.
1. If _reader_ is *undefined*, return *undefined*.
1. Repeat for each _readRequestPromise_ that is an element of _reader_@[[readRequests]],
1. Reject _readRequestPromise_ with _e_.
1. Set _reader_@[[readRequests]] to a new empty List.
1. Perform ReleaseReadableStreamReader(_reader_).
1. Set _reader_@[[storedError]] to _e_.
Expand Down

0 comments on commit 7b79d3b

Please sign in to comment.