Skip to content

Byte stream support for stream()? #186

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
saschanaz opened this issue Dec 14, 2022 · 0 comments · Fixed by #188
Closed

Byte stream support for stream()? #186

saschanaz opened this issue Dec 14, 2022 · 0 comments · Fixed by #188

Comments

@saschanaz
Copy link
Member

saschanaz commented Dec 14, 2022

This succeeds on Firefox but fails on Chrome:

new Blob([1,2]).stream().getReader({mode: 'byob'})

But the spec does not actually sets up the stream as a byte stream. It makes sense for file related APIs to support byte stream reader, should the spec change?

See also whatwg/fetch#267 for Fetch.

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

Successfully merging a pull request may close this issue.

1 participant