Template site objects and WeakMap
Mark S. Miller
erights at google.com
Wed Jun 17 21:08:44 UTC 2015
I am curious about what these are? But regardless, I would expect there to
be examples where it would be useful if it weren't fatal. Regarding the
issues in this thread, it actually would be safe to allow unregistered
Symbols as keys. But unless these examples are tremendously compelling,
please let's not.
On Wed, Jun 17, 2015 at 1:51 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>
> 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
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss