Bug 627959, part 2 - wrap exception in XPCThrower::ThrowExceptionObject (r=gal)

--HG--
extra : rebase_source : ea39e580d733130b63d0a71c19c32e773e50f50b
This commit is contained in:
Luke Wagner 2011-01-24 16:30:16 -08:00
parent 9ff73cbdc7
commit acc89d7129

View File

@ -310,6 +310,8 @@ XPCThrower::ThrowExceptionObject(JSContext* cx, nsIException* e)
(xpcEx = do_QueryInterface(e)) &&
NS_SUCCEEDED(xpcEx->StealJSVal(&thrown)))
{
if (!JS_WrapValue(cx, &thrown))
return JS_FALSE;
JS_SetPendingException(cx, thrown);
success = JS_TRUE;
}