Subj : Re: [SpiderMonkey] JS_DefineObject returns null after moving to newest sources To : Brendan Eich From : ggadwa@voyager.net (Brian Barnes) Date : Sat Jul 19 2003 07:00 pm On Saturday, July 19, 2003, at 12:16 PM, Brendan Eich wrote: > Can you do me a favor and show me the stack backtrace when > scripts_resolve_object is called indirectly from your (doomed to fail, > with the new version of the engine) call to JS_DefineProperty? Sure Brendan. I didn't catch what was going on either because my resolve returned JS_FALSE, to cancel the addition. This was causing me problems elsewhere, so it was mysterious until I tracked it down. Or, i.e., I didn't check for JS_DefineProperty to return null :) Oops. Hopefully this is enough. I forced the scripts_resolve_object to throw an error, so I could get the backtrace. Thread 0 Crashed: #0 0x00044104 in scripts_resolve_object #1 0x000440f8 in scripts_resolve_object #2 0x00057e84 in FindConstructor #3 0x000551a8 in GetClassPrototype #4 0x000523a8 in js_NewObject #5 0x00049568 in JS_DefineObject #6 0x00044908 in js_add_event_object #7 0x0004396c in scripts_add #8 0x00006dec in game_start #9 0x0000b764 in main #10 0x00004088 in _start (crt.c:267) #11 0x00003f08 in start [>] Brian .