WeakMap API questions?

Bradley Meck bradley.meck at gmail.com
Thu Aug 26 20:19:39 PDT 2010


I am not sure that would make it a regular map. Having the keys available
does not ensure that the keys will not be collected. I personally use the
keys on a personal implementation to check and see what callbacks may be
outstanding, and if I need to reference all the Objects of a given type at
once.

On Thu, Aug 26, 2010 at 8:14 PM, Waldemar Horwat <waldemar at google.com>wrote:

> Erik Arvidsson wrote:
>
>> 3. Why isn't there a way to iterate over the keys?
>>
>
> Because then it would be a regular map, not a weak map.  This is something
> that only a debugger should be able to do.
>
>   Waldemar
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20100826/a657de85/attachment.html>


More information about the es-discuss mailing list