mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
fix for bug 76574, r=rogerl, sr=brendan.
This commit is contained in:
parent
4fdba8a9ea
commit
f951c3a3e9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user