Subj : Re: JS_NewObject To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Sat Mar 27 2004 06:11 pm "Jochen Stier" wrote in message news:c44if2$hh22@ripley.netscape.com... > I am us JS_NewObject inside my C++ app to create stubs for internal classes. > Is there a > a way to delete the JSObject when I delete my internal classes. I am looking > for something > like JS_DeleteObject ? I know there is GC in JavaScript, but the interpretor > can not know > when I delete an internal class and the corresponding JS_Object is not > needed anymore. Try using JS_DeleteProperty: JS_DeleteProperty(cx, global_object, "your_objects_name_here"); Sterling .