Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove inaccurate note about ReadableStreamDefaultControllerEnqueue #829

Merged
merged 2 commits into from Oct 11, 2017

Conversation

ricea
Copy link
Collaborator

@ricea ricea commented Oct 6, 2017

ReadableStreamDefaultControllerEnqueue has a note indicating that it
could be called when the stream was closed without an exception being
thrown. This hasn't been true since December 2015. Remove the inaccurate
note.

Fixes #824.

ReadableStreamDefaultControllerEnqueue has a note indicating that it
could be called when the stream was closed without an exception being
thrown. This hasn't been true since December 2015. Remove the inaccurate
note.

Fixes whatwg#824.
@domenic
Copy link
Member

domenic commented Oct 6, 2017

I think we should move the first half of this note to ReadableStreamDefaultControllerCanCloseOrEnqueue, as it remains a tricky situation. Something like

The case where stream.[[closeRequested]] is false, but stream.[[state]] is not "readable", 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 cancel(reason).

@ricea ricea added the editorial Changes that do not affect how the standard is understood. label Oct 11, 2017
Clarify the cases when [[closeRequested]] is false but state is not
"readable".
@ricea
Copy link
Collaborator Author

ricea commented Oct 11, 2017

I tried to also cover the errored case in the note. PTAL.

@domenic domenic merged commit 0fbbca4 into whatwg:master Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial Changes that do not affect how the standard is understood.
Development

Successfully merging this pull request may close these issues.

Note on ReadableStreamDefaultControllerEnqueue is inaccurate
2 participants