3 ms·
WeakMap holds a weak reference to the _key_, not the _value_. That's not enough to do weak event handlers, for example...
by bzbarsky 10y ago
WeakMap holds a weak reference to the _key_, not the _value_. That's not enough to do weak event handlers, for example...