Skip to content

Map constructor ignores symbols #1731

Closed
@tolmasky

Description

@tolmasky

Map({ [MySymbol]: 5 }) generates an empty map despite Map([[MySymbol, 5]]) generating a single item Map. I imagine Map uses Object.keys on object argument instead of a combination of Object.keys and Object.getOwnPropertySymbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions