On 11/11/13 2:51 PM, Matthew Robb wrote:
What I am suggesting would not be bound to a WeakRef rather to the WeakMap. So in my mind it seems like the WeakMap can maintain a strong ref to the values it stores (not the keys obviously)
The whole point of a weakmap is that it does not maintain a strong ref to either the key or the value. Otherwise if the value references the key you get a leak.
http://en.wikipedia.org/wiki/Ephemeron talks about this issue in the introductory text at the top...
-Boris _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

