Invoke trap

Brandon Benvie bbenvie at mozilla.com
Fri Jun 7 13:31:55 PDT 2013


On 6/7/2013 1:24 PM, Brandon Benvie wrote:
> On 6/7/2013 1:22 PM, David Bruant wrote:
>> I don't see how this solves the issue related to
>>     Date.prototype.getTime.call( new Proxy(new Date(), handler) )
>
> Assuming invoke also works for call and apply, if `handler` is a 
> ForwardingHandler then that should work with getTime ultimately being 
> called on the real Date object as the receiver.
Nevermind this, I wasn't thinking. You're right.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130607/9ce19d6b/attachment.html>


More information about the es-discuss mailing list