Skip to content

Handle JS Strings bigger than 4 GiB #3

@daxpedda

Description

@daxpedda

At the time of writing the spec already supports handling JS Strings of that size, with one notable API issue. When users use encodeStringIntoUTF8*() without measureStringAsUTF8(), this is usually done by getting a rough estimation through "wasm:js-string" "length". However, this function returns a i32.

To address this we would have to introduce an overload to "wasm:js-string" "length" returning a i64.


Important

Currently no major JS engine supports strings bigger than 1 GiB.

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