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.

>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to