array like objects

Brendan Eich brendan at mozilla.org
Sun Dec 13 00:06:02 PST 2009


On Dec 12, 2009, at 12:36 PM, Mark S. Miller wrote:

> On Sat, Dec 12, 2009 at 12:29 PM, Garrett Smith <dhtmlkitchen at gmail.com 
> > wrote:
> Object.prototype.propertyIsEnumerable does not consider properties in
> the prototype chain. In effect, propertyIsEnumerable is a test to see
> if an object has *own* property that is also enumerable.
>
> And just when I was thinking I was finally beginning to understand  
> this language :(. I wonder what other gotchas I'm still missing?


See

https://bugzilla.mozilla.org/show_bug.cgi?id=57048

filed by David Flanagan on 2000-10-17. My comment 11 is from  
2000-12-01. This was an ES3 design-by-committee botch, never  
corrected. The spec originated the feature, no browser implemented  
anything like it first. SpiderMonkey tried doing it right as the bug  
shows, but no good deed goes unpunished.

/be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20091213/0516fa1a/attachment.html>


More information about the es-discuss mailing list