Skip to content

Define a JS-API implementation limit for name lengths #1574

@eqrion

Description

@eqrion

The core spec allows for an implementation limit on the length of names (i.e. strings). The JS-API does not define one and the engines have inconsistent limits. SpiderMonkey has a limit of 100_000 bytes. I'm told JSC has the same, and V8 has no limit.

This is normally not a big issue, but with js-string-builtins and string constants imports the names can get really big. One option would be to not have a limit on name length, but I'd prefer to have a limit even if it's really large.

How would folks feel about a limit of ~10 MiB? I would hope the would be large enough for 99% of string constants, and the pathological ones could use some other mechanism that's better designed for bulk data.

cc @mkustermann @jakobkummerow @kmiller68

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