Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Map constructor ignores symbols #149

Open
Methuselah96 opened this issue Oct 17, 2020 · 0 comments
Open

Map constructor ignores symbols #149

Methuselah96 opened this issue Oct 17, 2020 · 0 comments

Comments

@Methuselah96
Copy link

From @tolmasky on Tue, 03 Sep 2019 20:17:07 GMT

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.

Copied from original issue: immutable-js#1731

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant