mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
6cb8b40272
commit
e66a0f7027
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user