Template site objects and WeakMap

Allen Wirfs-Brock allen at wirfs-brock.com
Wed Jun 17 20:51:28 UTC 2015

On Jun 17, 2015, at 9:18 AM, Mark S. Miller wrote:

> [+Allen]
> Can registered Symbols be used as keys in WeakMaps? If so, we have a fatal unauthorized communications channel that we need to fix in the spec asap!

No, symbols are not objects and the keys of WeakMaps must be objects. 

BTW, some people have identified use cases where allowing symbols values as WeakMap keys would be useful.


More information about the es-discuss mailing list