Weak event listener

Tom Van Cutsem tomvc.be at gmail.com
Tue Mar 26 06:46:14 PDT 2013


2013/3/26 Juan Ignacio Dopazo <dopazo.juan at gmail.com>

> 2013/3/25 Erik Arvidsson <erik.arvidsson at gmail.com>
>
>> WeakMap would not work in this specific case since a WeakMap cannot be
>> iteratered.
>>
>
> I thought there was an iterable WeakSet for ES6. Was it postponed to ES7
> or just dropped?
>

I doubt there was ever an *iterable* WeakSet proposal, since iteration
would make GC of the weakly held values observable. This is exactly the
same reason why WeakMap isn't iterable.

Cheers,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130326/9f1bf9eb/attachment.html>


More information about the es-discuss mailing list