Skip to content

Max array length constant doesn't seem to match actual limits in browsers #1178

@domoritz

Description

@domoritz

Description

Encountered an error when I tried to allocate a large array with the size in https://github.com/stdlib-js/constants-array-max-typed-array-length.

new Uint8Array(9007199254740991)

Doesn't work in any browser (Firefox, Safari, Chrome) or Node.

Environments

Node.js, Firefox, Chrome, Safari

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions