Subj : Re: Enumeration of extended properties of Array and Object prototypes To : netscape.public.mozilla.jseng From : Chris Zumbrunn Date : Sat Mar 20 2004 03:52 am Brendan Eich wrote: > Chris Zumbrunn wrote: > > I understand that in accordance with the ECMA specs both Spidermonkey > > and Rhino make that additional methods added to Objects are enumerated > > in Javascript for/in loops. > > What do you mean, exactly? Can you give an example? > > /be Array.prototype.foo = "bar"; var a = new Array(1,2,3); for (var i in a) {x += i} x is 123foo, but I'd want it to be 123 .