Skip to content
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

New principle: accept arrays of bytes as BufferSource #486

Open
bakkot opened this issue Apr 3, 2024 · 0 comments
Open

New principle: accept arrays of bytes as BufferSource #486

bakkot opened this issue Apr 3, 2024 · 0 comments
Assignees

Comments

@bakkot
Copy link
Contributor

bakkot commented Apr 3, 2024

I wanted to make sure this is captured from the discussion here, even though I'm personally neutral on it as a principle and therefore don't want to be the one to write it up (I kind of prefer accepting only Uint8Array and ArrayBuffer because, for example, it is ambiguous how to interpret a Uint16Array as a sequence of bytes). It is currently an almost-universal convention.

I also think it would be good to specify that [AllowShared] and [AllowResizable] should be the defaults for BufferSource-taking APIs, even though very few existing APIs have been updated with those attributes yet.

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

No branches or pull requests

3 participants