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

Editorial: small cleanup after #1326 #1336

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

saschanaz
Copy link
Member

@saschanaz saschanaz commented Dec 20, 2024

Reducing some repeats and using list/size instead of a separate counter.


Preview | Diff

Copy link
Collaborator

@MattiasBuelens MattiasBuelens left a comment

Choose a reason for hiding this comment

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

Thanks! Would you mind updating the reference implementation to reflect these changes?

Comment on lines +3718 to +3719
1. [=While=] |filledPullIntos|'s [=list/size=] < !
[$ReadableStreamGetNumReadIntoRequests$](|stream|),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice! 😁

index.bs Outdated Show resolved Hide resolved
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jan 8, 2025
…=arai,smaug

This splits ReadableByteStreamControllerCommitPullIntoDescriptor from ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue so that close/chunk steps will run only after processing all descriptors, thus preventing user JS from potentially modifying anything during the process.

Corresponding to whatwg/streams#1326 with some cleanup in whatwg/streams#1336.

Differential Revision: https://phabricator.services.mozilla.com/D232663
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jan 8, 2025
…=arai,smaug

This splits ReadableByteStreamControllerCommitPullIntoDescriptor from ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue so that close/chunk steps will run only after processing all descriptors, thus preventing user JS from potentially modifying anything during the process.

Corresponding to whatwg/streams#1326 with some cleanup in whatwg/streams#1336.

Differential Revision: https://phabricator.services.mozilla.com/D232663
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jan 8, 2025
…=arai,smaug

This splits ReadableByteStreamControllerCommitPullIntoDescriptor from ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue so that close/chunk steps will run only after processing all descriptors, thus preventing user JS from potentially modifying anything during the process.

Corresponding to whatwg/streams#1326 with some cleanup in whatwg/streams#1336.

Differential Revision: https://phabricator.services.mozilla.com/D232663
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants