This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
Map constructor ignores symbols #149
Open
Description
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