Array.isArray(new Proxy([], {})) should be false (Bug 1096753)

Jeremy Martin jmar777 at gmail.com
Wed Nov 12 11:58:39 PST 2014


>
> My opinion is that array testing is fundamental to core JS and is worth
> the exception.


Knowing that Array.isArray() tests fail for proxies, I'd be afraid to ever
create a Proxy for an array that I don't control the complete lifecycle of.
That seems to critically inhibit the usefulness of Proxies, especially when
transparency seems to have been an intended characteristic of them going
all the way back to the strawman days.

On Wed, Nov 12, 2014 at 2:37 PM, Kevin Smith <zenparsing at gmail.com> wrote:

> In general, it appears that SM unwraps proxies so that internal slot
> access is transparently forwarded.  I don't see any such unwrapping in the
> ES spec though.  I assume that the spec is correct?
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
Jeremy Martin
661.312.3853
http://devsmash.com
@jmar777
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141112/344ed152/attachment.html>


More information about the es-discuss mailing list