Brandon Benvie wrote: > Yeah I modified gozala's method a bit. The value isn't kept in valueOf, > rather in a null proto object that allows different WeakMaps to not step on > another one.
I could easily be misunderstanding things, so I'll be brief. Under the standard WeakMap, if I have a WeakMap W, an Object A and an Object B and I add A=>B to the WeakMap, the behaviour is that both W and A being reachable (during GC) will make B reachable, but that neither of them being reachable alone will make B reachable. In the case of at least some of these shims, it seems that adding A=>B to any weakmap and not undoing it later means than either B or W will reachable for as long as A is, whether or not they are otherwise reachable. Regards, Grant Husbands. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

