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

Andreas Rossberg rossberg at google.com
Wed Nov 12 23:18:52 PST 2014


On 12 November 2014 17:23, Tom Van Cutsem <tomvc.be at gmail.com> wrote:
> My opinion is that array testing is fundamental to core JS and is
> worth the exception.

This change would only make sense if we also were to special-case all
other places in the spec that currently say "if O is an exotic Array
object, ..." to magically handle proxies. Otherwise, all you get is a
predicate that gives a misleading result.

However, I don't think we want to special-case all those places. That
would put us on a very slippery slope.

/Andreas


More information about the es-discuss mailing list