зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1331434 - Part 6: Mark a throw in FlyWeb as requiring custom cleanup, r=djvj
MozReview-Commit-ID: LwAyet5qCw4
This commit is contained in:
Родитель
e66a0f7027
Коммит
aecd0f6f4c
|
@ -1193,7 +1193,7 @@ FlyWebService::PairWithService(const nsAString& aServiceId,
|
|||
|
||||
if (NS_FAILED(rv)) {
|
||||
ErrorResult result;
|
||||
result.Throw(rv);
|
||||
result.ThrowWithCustomCleanup(rv);
|
||||
const nsAString& reason = NS_LITERAL_STRING("Error pairing.");
|
||||
aCallback.PairingFailed(reason, result);
|
||||
ENSURE_SUCCESS_VOID(result);
|
||||
|
|
|
@ -192,9 +192,8 @@ HttpServer::AcceptWebSocket(InternalRequest* aConnectRequest,
|
|||
return provider.forget();
|
||||
}
|
||||
|
||||
aRv.Throw(NS_ERROR_UNEXPECTED);
|
||||
MOZ_ASSERT(false, "Unknown request");
|
||||
|
||||
aRv.Throw(NS_ERROR_UNEXPECTED);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче