Tom Van Cutsem wrote:

    No really, it was a way to expose a test of the [[Class]] internal
    property.  That test wasn't dependent upon the [[Prototype]] chain.


I think what Domenic was saying is that Array.isArray used such a test *because* instanceof Array didn't work reliably cross-realms. I too vaguely recollect that reliable cross-realm "instanceof Array" testing was a primary motivation for Array.isArray.

Yes, that was Crock's stated motivation as I recall. Here's a 2003-era post from Doug:

https://groups.google.com/forum/#!msg/comp.lang.javascript/XTWYCOwC96I/70rNoQ3L-xoJ

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to