Adding [[Invoke]] to address issues with methods called on Proxies

Brandon Benvie brandon at brandonbenvie.com
Tue Jan 29 03:28:56 PST 2013


Another correction: the problem with __noSuchMethod__ is actually a
completely different problem. In order to implement __noSuchMethod__
currently, a Proxy needs to always return a function from "get" which has
captured the property name in a closure. This would continue being true if
[[Invoke]] was added. Since [[CallProperty]] is simply passed a property
name and is responsible for the [[Get]], a Proxy implementing a
"callProperty" would be able to work like __noSuchMethod__.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130129/19c29a54/attachment.html>


More information about the es-discuss mailing list