Subj : Re: Enumeration of extended properties of Array and Object prototypes To : Chris Zumbrunn From : Brendan Eich Date : Fri Mar 19 2004 08:59 pm Chris Zumbrunn wrote: > Yes, I know that :-) Ok, good to know -- it wasn't totally clear (maybe I was being dense) from your original posting. > Getting back to my original question... > > Is a change to this being considered for JS 2.0 (and the next ECMA > specs). Is any way being considered that would allow to add members to > objects, particularly prototype objects, without them being enumerated > by for/in loops? This could for example also be in the form... > > dontenum Array.prototype.foo; > > ...or something of that nature, if that helps to avoid backwards > compatibility headaches. See http://www.mozilla.org/js/language/js20/core/definitions.html#visibility-attributes. Why do you want this, exactly? For what purpose? /be .