Subj : Re: Enumerating standard class properties & methods To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Wed Dec 17 2003 10:29 am "Martin Honnen" wrote in message news:brpcou$nt1@ripley.netscape.com... > 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. Just to press the point, though, none of the implementations are strictly equivalent to the ECMA spec. While it is particularly specific regarding the DontEnum attribute, I don't believe it would be a major departure from the spec to differ on that particular attribute. Having said that, I'm not a SpiderMonkey engineer either. Where it's become an issue in one situation is recursive enumeration. The software enumerates to a Date, attempts to enumerate it, only to find it has no properties or methods. Having numerous methods, however, it would be handy to enumerate the object rather than store a static list of methods available to Date objects in the hosting app. Thanks, Sterling .