diff --git a/index.bs b/index.bs index b58d9cfc2..6a894f662 100644 --- a/index.bs +++ b/index.bs @@ -1793,14 +1793,6 @@ asserts). 1. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(_controller_). -
- The case where stream.\[[state]] is "closed", but stream.\[[closeRequested]] - is false, will happen if the stream was closed without its controller's close method ever being - called: i.e., if the stream was closed by a call to {{ReadableStream/cancel(reason)}}. In this case we allow the - controller's enqueue method to be called and silently do nothing, since the cancelation was outside the - control of the underlying source. -
-

ReadableStreamDefaultControllerError ( controller, e )

@@ -1859,6 +1851,13 @@ nothrow>ReadableStreamDefaultControllerCanCloseOrEnqueue ( controller 1. Otherwise, return *false*. +
+ The case where stream.\[[closeRequested]] is false, but stream.\[[state]] is + not "readable", happens when the stream is errored via {{ReadableStreamDefaultController/error(e)}}, or + when it is closed without its controller's close method ever being called: e.g., if the stream was closed + by a call to {{ReadableStream/cancel(reason)}}. +
+

Class ReadableByteStreamController