Multiple improvements to blob implementation#6466
Merged
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
8b87a5b to
eb31d8d
Compare
This comment was marked as outdated.
This comment was marked as outdated.
eb31d8d to
95b7e15
Compare
This comment was marked as outdated.
This comment was marked as outdated.
bbd7dab to
7c1e106
Compare
guybedford
reviewed
Apr 1, 2026
Collaborator
Author
|
It's more the absence of mention in the spec. Blob does not have the AllowResizable webidl attribute. Browser implementations (chrome, firefox) throw appropriately. Node.js, Deno, and Bun do not... but they should. There does not appear to be any WPT's... but I think in this case it's just safer to follow the behavior of the browsers. |
Contributor
|
Why would |
guybedford
approved these changes
Apr 1, 2026
Contributor
|
Would be good to figure out where the standards discussion should go on this though. Maybe just posting a WPT is a good next step. |
* Better handling of recursive slices * Better handling of empty blobs * Performance optimizations for single-Blob inputs * Move away from using BufferSource in blob
7c1e106 to
50417a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.