Closed soroushm closed 6 years ago
1) This isn't the repo to report such things; this is a specific proposal.
2) That's not a bug; that's because only strings and Symbols can be property keys - not objects - so when you try to use an object, it converts it to a string ("[object Object]"
).
What you want is a Map
, which can have objects as keys.
Dear Ecma,
@mohsen89z and I found a bug in JavaScript and we thought you guys might be interested:
If you put an object A as a key in object B, you can retrieve B's value with any other Object! for example: