Actual WeakSet Use Cases
benjamingr at gmail.com
Tue Jun 2 15:45:23 UTC 2015
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...
More information about the es-discuss