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

On Sat, Dec 12, 2009 at 12:29 PM, Garrett Smith <dhtmlkitc...@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
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to