fix for bug 76574, r=rogerl, sr=brendan.

This commit is contained in:
rginda%netscape.com 2001-05-04 21:34:21 +00:00
parent 4fdba8a9ea
commit f951c3a3e9

View File

@ -1311,6 +1311,7 @@ js_Interpret(JSContext *cx, jsval *result)
{
JSTrapHandler handler = rt->interruptHandler;
if (handler) {
SAVE_SP(fp);
switch (handler(cx, script, pc, &rval,
rt->interruptHandlerData)) {
case JSTRAP_ERROR:
@ -2679,6 +2680,7 @@ js_Interpret(JSContext *cx, jsval *result)
/* Call the debugger hook if present. */
hook = cx->runtime->callHook;
if (hook) {
SAVE_SP(fp);
newifp->hookData = hook(cx, &newifp->frame, JS_TRUE, 0,
cx->runtime->callHookData);
}
@ -3661,6 +3663,7 @@ js_Interpret(JSContext *cx, jsval *result)
{
JSTrapHandler handler = rt->debuggerHandler;
if (handler) {
SAVE_SP(fp);
switch (handler(cx, script, pc, &rval,
rt->debuggerHandlerData)) {
case JSTRAP_ERROR:
@ -3730,6 +3733,7 @@ out:
*/
JSTrapHandler handler = rt->throwHook;
if (handler) {
SAVE_SP(fp);
switch (handler(cx, script, pc, &rval, rt->throwHookData)) {
case JSTRAP_ERROR:
cx->throwing = JS_FALSE;