[[Extensible]]and Proxies (Was: Proxy.isProxy )

Mark S. Miller erights at google.com
Wed Jul 13 11:52:49 PDT 2011

On Wed, Jul 13, 2011 at 8:38 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:

> Hate to start another cycle of this,  but if (trapping) proxies can't be
> set to [[Extensible]]: false, then they can't be used to fully emulate
> built-ins such as Array.  Why is there this restriction?
On Wed, Jul 13, 2011 at 10:30 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>

> Yes, but the restriction prohibits otherwise legal behavior that doesn't
> violate the invariant.  Isn't that as "bad" as not enforcing the invariant?

What behavior of non-extensible arrays cannot be emulated by a normal
non-proxy object?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110713/cd634456/attachment-0001.html>

More information about the es-discuss mailing list