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 <walde...@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@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss