mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 627959, part 2 - wrap exception in XPCThrower::ThrowExceptionObject (r=gal)
--HG-- extra : rebase_source : ea39e580d733130b63d0a71c19c32e773e50f50b
This commit is contained in:
parent
9ff73cbdc7
commit
acc89d7129
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user