Removal of WeakMap/WeakSet clear

Brendan Eich brendan at
Mon Dec 8 15:49:17 PST 2014

Tab Atkins Jr. wrote:
> JS has maps/sets that take objects natively, hiding any details about
> how a mutable object is tracked/stored as keys or values, so there's
> never been any need for such a thing.  Explicitly exposing hash codes
> is leaking implementation details into the user-facing API.

Not necessarily an implementation leak. It's really an implementation 
constraint, or set of constraints, that can be specified. See ye olde

including important safety tip

Why might this come to ES7 or beyond?


See also 
-- have to avoid DoS attacks in any hashcode implementation.


More information about the es-discuss mailing list