ES4 draft: Object

Brendan Eich brendan at mozilla.org
Wed Mar 5 17:35:01 PST 2008


On Mar 5, 2008, at 5:28 PM, Erik Arvidsson wrote:

> I'm not sure it is such a big issue since the new method would be
> [[DontEnum]] but I'm willing to let this rest.

Object detection does not care about enumerability.

> The reason why I don't think it is that a big risk is that a lot of
> people still use Array instead of Object for "associative arrays" and
> I don't think adding the array extras introduced any problems.

Arrays are bad for "associative arrays" for many reasons, but  
probably their abusers don't care!

> Brendan, did you get any bug reports on Spidermonkey when array extras
> was added?

No, but consider that in our DOM at least, the global object,  
document, etc. etc. all delegate to Object.prototype -- not to  
Array.prototype.

/be




More information about the Es4-discuss mailing list