Skip to content

Why are the toStringTag values "Object"? #176

@littledan

Description

@littledan

It would seem more intuitive that, for example, Intl.Collator[Symbol.toStringTag] would be "Intl.Collator". Is this done for compatibility reasons, where we're aware of a site that depends on toString() on Intl objects returning "[Object object]"? For new APIs, should we use "Object" or the name of the class, if we're not constrained by compatibility?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: metaComponent: intl-wide issuess: help wantedStatus: help wanted; needs proposal champion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions