Subj : Re: JS_HandleTrap unhandled exception To : netscape.public.mozilla.jseng From : Mike Moening Date : Thu Mar 31 2005 09:00 pm JS_HandleTrap is also throwing an ASSERT and aborting at times. Its definately related to clearing a breakpoint that I'm currently sitting on and then contining execution. This line asserts -> JS_ASSERT(0); /* XXX can't happen */ Heres the body of the function causing the assert. JS_HandleTrap(JSContext *cx, JSScript *script, jsbytecode *pc, jsval *rval) { JSTrap *trap; JSTrapStatus status; jsint op; trap = FindTrap(cx->runtime, script, pc); if (!trap) { JS_ASSERT(0); /* XXX can't happen */ "Mike Moening" wrote in message news:d2ice0$p1d1@ripley.netscape.com... > Here's the call stack before the crash: > > JS_HandleTrap(JSContext * 0x009729d8, JSScript * 0x01225e68, unsigned char * > 0x01225ee8, long * 0x0012e5cc) line 212 + 29 bytes > js_Interpret(JSContext * 0x009729d8, long * 0x0012e76c) line 3478 + 21 bytes > js_Invoke(JSContext * 0x009729d8, unsigned int 0, unsigned int 1) line 958 + > 13 bytes > js_Interpret(JSContext * 0x009729d8, long * 0x0012f478) line 2585 + 15 bytes > js_Execute(JSContext * 0x009729d8, JSObject * 0x00979348, JSScript * > 0x01226b90, JSStackFrame * 0x00000000, unsigned int 0, long * 0x0012faa8) > line 1159 + 13 bytes > > The js_Interpret is handling a JSOP_NEW and calling: > ok = js_Invoke(cx, argc, JSINVOKE_CONSTRUCT); > > > .