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

“Realmless” ArrayBuffer creation in Body’s arrayBuffer() steps #1675

Closed
bathos opened this issue Jun 21, 2023 · 1 comment · Fixed by #1751
Closed

“Realmless” ArrayBuffer creation in Body’s arrayBuffer() steps #1675

bathos opened this issue Jun 21, 2023 · 1 comment · Fixed by #1751

Comments

@bathos
Copy link

bathos commented Jun 21, 2023

The Body mixin’s arrayBuffer operation steps are defined as:

[returning] the result of running consume body with this and the following step given a byte sequence bytes: return a new ArrayBuffer whose contents are bytes.

The “new ArrayBuffer” portion is unlinked. It should presumably be linking to “create an ArrayBuffer” in Web IDL and its missing argument (a realm) should be supplied. I would expect the realm here to be the relevant realm of this.

(Issue discovered by @twiss when correcting ArrayBuffer usage in WebCrypto algorithms.)

@annevk
Copy link
Member

annevk commented Jun 26, 2023

Might want to also fix

a Uint8Array wrapping an ArrayBuffer containing the available bytes

while here.

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

Successfully merging a pull request may close this issue.

2 participants