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
> 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.
> Allen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150617/b20b8ff9/attachment.html>

More information about the es-discuss mailing list