зеркало из https://github.com/mozilla/gecko-dev.git
merge b2g-inbound to mozilla-central
This commit is contained in:
Коммит
c079fe98d2
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"revision": "4a8dcbcad9433e7cb0b619d80b041219e5946130",
|
||||
"revision": "8c2ad9ad3192687c13efe1eb0cd986d6214b4b5d",
|
||||
"repo_path": "/integration/gaia-central"
|
||||
}
|
||||
|
|
|
@ -114,7 +114,16 @@ Throw(JSContext* aCx, nsresult aRv, const char* aMessage)
|
|||
nsresult nr;
|
||||
if (NS_SUCCEEDED(existingException->GetResult(&nr)) &&
|
||||
aRv == nr) {
|
||||
// Just reuse the existing exception.
|
||||
// Reuse the existing exception.
|
||||
|
||||
// Clear pending exception
|
||||
runtime->SetPendingException(nullptr);
|
||||
|
||||
if (!ThrowExceptionObject(aCx, existingException)) {
|
||||
// If we weren't able to throw an exception we're
|
||||
// most likely out of memory
|
||||
JS_ReportOutOfMemory(aCx);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче