Bug 1331434 - Part 5: Mark some Throw calls in /dom/bindings as having custom cleanup, r=baku

MozReview-Commit-ID: CooKyfkMlWq
This commit is contained in:
Michael Layzell 2017-02-28 14:45:04 -05:00
parent 6cb8b40272
commit e66a0f7027
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ CallbackObject::CallSetup::~CallSetup()
// IsJSContextException shouldn't be true anymore because we will report
// the exception on the JSContext ... so throw something else.
mErrorResult.Throw(NS_ERROR_UNEXPECTED);
mErrorResult.ThrowWithCustomCleanup(NS_ERROR_UNEXPECTED);
}
}
}

View File

@ -5468,7 +5468,7 @@ def getJSToNativeConversionInfo(type, descriptorProvider, failureCode=None,
nsCOMPtr<nsIGlobalObject> global =
do_QueryInterface(promiseGlobal.GetAsSupports());
if (!global) {
promiseRv.Throw(NS_ERROR_UNEXPECTED);
promiseRv.ThrowWithCustomCleanup(NS_ERROR_UNEXPECTED);
promiseRv.MaybeSetPendingException(cx);
$*{exceptionCode}
}