Private symbols auto-unwrapping proxies (was: Security Demands Simplicity (was: Private Slots))
brandon at brandonbenvie.com
Thu Jan 24 07:14:25 PST 2013
Just to clarify, the example I gave of WeakMap usage breaking with proxies
was just to illustrate how a type of private data currently in use
alongside proxies can break the target object purely by accident. While I
do think [[CallMethod]] would go a long way to ameliorating the problem, I
still believe allowing private symbol keyed properties to have a special
immunity to proxies is a useful tool. The advice would be: use private
symbols for properties that hold sensitive state to prevent proxies from
accidentally breaking instances of your classes.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss