Skip to content

Missing binding to Blob.prototype.bytes #4475

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
nasso opened this issue Apr 9, 2025 · 0 comments · May be fixed by #4506
Open

Missing binding to Blob.prototype.bytes #4475

nasso opened this issue Apr 9, 2025 · 0 comments · May be fixed by #4506

Comments

@nasso
Copy link
Contributor

nasso commented Apr 9, 2025

Spec: https://w3c.github.io/FileAPI/#ref-for-dom-blob-bytes

// read from the Blob.
[NewObject] ReadableStream stream();
[NewObject] Promise<DOMString> text();
[NewObject] Promise<ArrayBuffer> arrayBuffer();
};

This would be nice to have, as it allows directly going from Blob to Uint8Array, skipping the ArrayBuffer step.

If it's just a matter of updating the Web IDL and nobody has anything against it, I'd be down to open a PR!

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 a pull request may close this issue.

1 participant