WeakMap, clear, and, inverted implementations

Brendan Eich brendan at mozilla.com
Mon Aug 5 11:45:57 PDT 2013

Allen Wirfs-Brock wrote:
> Regarding, "it comes clear that an implementation of WeakMap should 
> always keep associations on the key object...".  I don't agree with 
> that assertion at all as it ignore the caching use case.

Yup. Indeed one of those caching use-cases is for membranes, where 
soft-fields do not work.

Mark, I'm thinking of not only Mozilla and TomVC code, but this:



More information about the es-discuss mailing list