Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Consistently use either TypedArrayLength or TypedArrayByteLength #53

@anba

Description

@anba

Uint8Array.prototype.setFrom{Base64, Hex} call TypedArrayByteLength, whereas GetUint8ArrayBytes uses TypedArrayLength. This should be made consistent.

I think I'd prefer TypedArrayLength, because TypedArrayByteLength is defined in terms of TypedArrayLength and because calling TypedArrayLength makes it more obvious that detached buffers are disallowed.

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