d at domenic.me (2015-07-07T01:43:31.189Z)
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.
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> wrote: > > 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 -- Cheers, --MarkM -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150617/b20b8ff9/attachment.html>