Subj : Re: Enumerating standard class properties & methods To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Dec 17 2003 12:06 pm Sterling Bates wrote: > The objects Date, String, Number, etc are not enumerable within script. Not > that that's a newsflash :) but I'm wondering if enumeration could be > included in/has been considered for future releases. ECMAScript edition 3 in section 15 where the native ECMAScript objects are defined says There are certain built-in objects available whenever an ECMAScript program begins execution. One, the global object, is in the scope chain of the executing program. Others are accessible as initial properties of the global object. .... Every other property described in this section has the attribute { DontEnum } (and no others) unless otherwise specified. And there is nothing specified for the constructor properties Date, String, Number that they should be enumerable thus I don't think any implementation aiming to be compliant with the ECMAScript specification is allowed to enumerate those properties. -- Martin Honnen http://JavaScript.FAQTs.com/ .