Removal of WeakMap/WeakSet clear

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


> Le 5 déc. 2014 à 05:06, Alex Russell <slightlyoff at google.com> 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.

—Claude

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141210/b7763e78/attachment.html>


More information about the es-discuss mailing list