Skip to content

fetch: make consumeBody sync #4449

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

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

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Aug 22, 2025

It reduces the amount of Promises created by a fetch call by 2.

@Uzlopak Uzlopak force-pushed the reduce-promises-consumeBody branch from bf3f18f to 6f2aa12 Compare August 22, 2025 23:27
@Uzlopak Uzlopak force-pushed the reduce-promises-consumeBody branch from e21a7b2 to 4fd98c5 Compare August 22, 2025 23:45
Comment on lines +441 to +445
try {
webidl.brandCheck(object, instance)
} catch (e) {
return Promise.reject(e)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this on the other hand is kind of stupid

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants