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

ReadableStreamDefaultController.close() - invalid exception reasons #34690

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Jul 8, 2024

Partial fix for #34597

Also some layout only fixes.

@hamishwillee hamishwillee requested a review from a team as a code owner July 8, 2024 00:05
@hamishwillee hamishwillee requested review from wbamberg and removed request for a team July 8, 2024 00:05
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jul 8, 2024
@@ -34,19 +29,15 @@ None ({{jsxref("undefined")}}).
### Exceptions

- {{jsxref("TypeError")}}
- : Thrown if the source object is not a `ReadableStreamDefaultController`.

- : Thrown if `close()` is called when the stream is not readable — because it is already closed, cancelled, or errored — or because it has been requested to close by the underlying source but it has not yet done so because there are still enqueued chunks to read.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only content change.

@github-actions github-actions bot added the size/s [PR only] 6-50 LoC changed label Jul 8, 2024
Copy link
Contributor

github-actions bot commented Jul 8, 2024

Preview URLs

External URLs (1)

URL: /en-US/docs/Web/API/ReadableStreamDefaultController/close
Title: ReadableStreamDefaultController: close() method

@Josh-Cena
Copy link
Member

Is this intended to close #34597?

@hamishwillee
Copy link
Collaborator Author

@Josh-Cena No, it only partially fixes it. The original comment states that there the same problem is found in some nearby issues. I didn't look at those, though I will later if no one else does.

@Josh-Cena
Copy link
Member

Ok; because the PR description containing the substring "fixes #xxx", even if prefixed by "partially", would link this PR.

@hamishwillee
Copy link
Collaborator Author

Thanks @Josh-Cena - I didn't realize it was that sensitive. Have modified to something that hopefully wouldn't trigger a close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed
2 participants