Subj : Re: [SpiderMonkey] JS_SealObject To : Brendan Eich From : ggadwa@voyager.net (Brian Barnes) Date : Sun Jul 20 2003 05:07 am On Saturday, July 19, 2003, at 10:48 PM, Brendan Eich wrote: > 2. Use JS_SealObject after you've populated an object, to prevent > *any* properties from being added to it. ARGH! I was pulling my hair out wondering how I could miss this, and I was about ready to put my head in the oven when I realized that it's brand new. Yeah! I get to remove a bunch of wacky code! Two questions, since there doesn't seem to be a listing in the docs: JS_SealObject(JSContext *cx, JSObject *obj, JSBool deep); 1. What does deep do? I assume it means to it recursively. 2. I don't think so but have to ask -- Do I need to unseal sealed objects to have a proper shutdown for JS? This function is a life-saver! [>] Brian .