Subj : overriding JS_EnumerateStub To : netscape.public.mozilla.jseng From : Edward Chan Date : Tue Aug 09 2005 12:56 pm I was wondering if someone can point me to some sample code, or explain to me how to override the default JS_EnumerateStub. I basically want to add or remove a property from an object's property spec at runtime. For example, I've defined my object and called JS_InitClass with some array of JSPropertySpec's. But when someone does a for-in loop on the obj, I there are some props I may not want to make enumerable based on the state of the obj. Should I be doing this by overriding the JS_EnumerateStub? Thanks, Ed .