From 162cd6ab9b382d58ddfcb1a9593df178764e4adb Mon Sep 17 00:00:00 2001 From: Eddy Bruel Date: Wed, 17 Aug 2016 11:44:44 +0200 Subject: [PATCH] Bug 1294013 - Replace parseResumptionValueHelper with processResumptionValue in handleUncaughtException. r=jimb --- js/src/vm/Debugger.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/src/vm/Debugger.cpp b/js/src/vm/Debugger.cpp index e219e9b2086e..c785454147c9 100644 --- a/js/src/vm/Debugger.cpp +++ b/js/src/vm/Debugger.cpp @@ -1339,8 +1339,13 @@ Debugger::handleUncaughtExceptionHelper(Maybe& 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; + } } }