Skip to content

Allows passing iterable to Blob and File #1536

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

Closed
wants to merge 2 commits into from

Conversation

demensky
Copy link

@demensky demensky commented Apr 3, 2023

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2023

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@demensky
Copy link
Author

demensky commented Apr 3, 2023

@microsoft-github-policy-service agree

@demensky demensky marked this pull request as draft April 3, 2023 22:14
@@ -3073,7 +3073,7 @@ interface Blob {

declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
new(blobParts?: Iterable<BlobPart>, options?: BlobPropertyBag): Blob;
Copy link
Contributor

Choose a reason for hiding this comment

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

You cannot do this as the base lib needs to be ES5 compatible. This kind of thing is done in dom.iterable but the constructor can't be extended in the current design. We are blocked here.

@demensky demensky closed this May 17, 2025
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