Skip to content

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

Closed
@bathos

Description

@bathos

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions