Removal of WeakMap/WeakSet clear

Claude Pache claude.pache at
Tue Dec 9 16:01:56 PST 2014

> Le 5 déc. 2014 à 05:06, Alex Russell <slightlyoff at> a écrit :
> I support Katelyn's suggestion to make clear() neuterable on an instance, perhaps with per-object configuration.
> It leaves the API intact while allowing those with security concerns to address them.
What is the advantage of having `.clear()` on instances instead of the prototype?
for in both cases, you have to opt-out if you don't want it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list