Actual WeakSet Use Cases

Benjamin Gruenaum benjamingr at gmail.com
Tue Jun 2 15:45:23 UTC 2015


Thanks Domenic,

Elaborating on your example with more details. Let's say you need to make
sure at a certain point that an object has not been tinkered with by user
code (for security reasons). You can't check the prototype or a symbol
since those can be faked and you can't keep a regular `Set` because that
would prevent any `Foo` object from ever being garbage collected.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150602/5cdf3e16/attachment.html>


More information about the es-discuss mailing list