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

Tom Van Cutsem tomvc.be at gmail.com
Wed Nov 12 23:09:19 PST 2014


2014-11-12 20:37 GMT+01:00 Kevin Smith <zenparsing at gmail.com>:

> 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?
>

This auto-unwrapping for internal slots used to be part of an early
iteration of direct proxies <
http://wiki.ecmascript.org/doku.php?id=harmony:direct_proxies#wrapping_irregular_objects>
but was not carried over into the ES6 spec. IIRC, mainly because just
forwarding any internal slot access endangers the encapsulation properties
of membrane-like use cases.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141113/2f0381c7/attachment-0001.html>


More information about the es-discuss mailing list