[[Invoke]] and implicit method calls

Kevin Smith zenparsing at gmail.com
Tue Sep 24 12:24:52 PDT 2013


> I think this is a key point.  Things like 'new Proxy(new Date,
> {}).getDate()' just don't work as expected with direct proxies and we have
> not been able to fix that while maintaining other important semantic
> requirements.   If JS programmer have an expectation that they can usefully
> write such code they are going to be disappointed.  Direct proxies seem to
> be a fine primitive for implementing membranes and some virtual objects.
>  They aren't good for things like this Date example.
>

I think that transparently interceding in front of an object with private
state is a questionable endeavor in any case.

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130924/1c89539b/attachment.html>


More information about the es-discuss mailing list