Why would you want to enumerate the keys in a weak map? Andreas
On Apr 7, 2011, at 4:04 PM, Mikeal Rogers wrote: > Weak Maps seems to have superseded ephemeron tables. > > They are non-enumerable, does this also exclude any call that gives you an > array of the current keys? > > If this is the case then it excludes the primary use case we have in node for > ephemeron tables. > > I can understand why you might want to limit enumerability because a gc could > mutate the map during enumeration but I desperately hope there is still a way > to get the current list of keys and inspect the values provided that you > guard against the key going away. > > -Mikeal > _______________________________________________ > 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