Removal of WeakMap/WeakSet clear

Brendan Eich brendan at
Wed Nov 26 15:14:13 PST 2014

Katelyn Gadd wrote:
> However: Does this mean that if I implement clear myself by creating
> new WeakMaps, i'm inadvertently doing horrible things to the GC?

Assume yes (only defensive assumption). What goes wrong?

Sorry if I missed it: what is your .clear use case, in example code?


More information about the es-discuss mailing list