Skip to content

Commit

Permalink
Bug 1294013 - Replace parseResumptionValueHelper with processResumpti…
Browse files Browse the repository at this point in the history
…onValue in handleUncaughtException. r=jimb
  • Loading branch information
ejpbruel committed Aug 17, 2016
1 parent aa37c5c commit 6d0ac1e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/src/vm/Debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,13 @@ Debugger::handleUncaughtExceptionHelper(Maybe<AutoCompartment>& ac,
RootedValue fval(cx, ObjectValue(*uncaughtExceptionHook));
RootedValue rv(cx);
if (js::Call(cx, fval, object, exc, &rv)) {
return vp ? parseResumptionValueHelper(ac, true, rv, thisVForCheck, frame, *vp, false)
: JSTRAP_CONTINUE;
if (vp) {
JSTrapStatus status = JSTRAP_CONTINUE;
if (processResumptionValue(ac, frame, thisVForCheck, rv, &status, *vp))
return status;
} else {
return JSTRAP_CONTINUE;
}
}
}

Expand Down

0 comments on commit 6d0ac1e

Please sign in to comment.