Skip to content

Commit

Permalink
Remove preconditions from ReadableStreamDefaultControllerError
Browse files Browse the repository at this point in the history
ReadableStreamDefaultControllerError had a note that specifications should
respect the preconditions (listed as asserts). However, it doesn't have any
asserts. Remove mention of preconditions.

Fixes whatwg#920.
  • Loading branch information
ricea committed May 14, 2018
1 parent af48a18 commit 8917829
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.bs
Expand Up @@ -1876,8 +1876,7 @@ export>ReadableStreamDefaultControllerError ( <var>controller</var>, <var>e</var

This abstract operation can be called by other specifications that wish to move a readable stream to an errored state,
in the same way a developer would error a stream using its associated controller object. Specifications should
<em>not</em> do this to streams they did not create, and must ensure they have obeyed the precondition (listed here as
an assert).
<em>not</em> do this to streams they did not create.

<emu-alg>
1. Let _stream_ be _controller_.[[controlledReadableStream]].
Expand Down

0 comments on commit 8917829

Please sign in to comment.