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

Brandon Benvie brandon at brandonbenvie.com
Tue Jan 29 07:57:20 PST 2013


Err yes, sorry. I was assuming away the last "arguments" argument in al
three cases!

On Tuesday, January 29, 2013, Allen Wirfs-Brock wrote:

> or [[CallProperty]](receiver, property, arguments)
>
> I haven't had a chance to work through all the details yet, but this is
> something I want to explore as a solution to the Proxy forwarded identify
> issue.  It does have to work with both normal property access calls and
> with super calls.  Also, it needs to be consistent with the Proxy semantics
> of [[Get]]/[[Put]] when they trigger accessors.
>
> Allen
>
> On Jan 29, 2013, at 4:04 AM, Brandon Benvie wrote:
>
> > A superior third alternative is [[CallProperty]](receiver, property)
> (and, in retrospect, likely what awb intended) which would allow for both
> __noSuchMethod__ and correctly trapping super. This fits with
> [[CallProperty]] being the combination of [[Get]] with calling the method.
> > _______________________________________________
> > es-discuss mailing list
> > es-discuss at mozilla.org <javascript:;>
> > https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130129/cbe175c1/attachment-0001.html>


More information about the es-discuss mailing list