-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Non readable stream should throw when errored while not readable #39756
Comments
@jasnell @nodejs/streams |
But it says also we can call |
The above snippet doesn't log an error in any of the WHATWG stream implementation (I've tried Deno, Firefox, Safari, and Chromium), whatever the spec says I think we're good as long as all the implementation are aligned. |
Maybe the MDN page is wrong, looking at the spec it says:
It says the method should return, not throw an exception. I'll open a PR to mdn/content to fix the page. |
Yeah, as surprising as it may be, the behavior here is correct and MDN is wrong. |
Fixed by mdn/content#13581. |
https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/error#exceptions
The text was updated successfully, but these errors were encountered: