Private symbols auto-unwrapping proxies (was: Security Demands Simplicity (was: Private Slots))

Brandon Benvie 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...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130124/657d6bf6/attachment.html>


More information about the es-discuss mailing list