merge b2g-inbound to mozilla-central

This commit is contained in:
Carsten "Tomcat" Book 2013-10-15 10:27:51 +02:00
commit 023a70de2a
2 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{
"revision": "4a8dcbcad9433e7cb0b619d80b041219e5946130",
"revision": "8c2ad9ad3192687c13efe1eb0cd986d6214b4b5d",
"repo_path": "/integration/gaia-central"
}

View File

@ -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;
}
}