Bug 700202 - Propagate exceptions from ConstructSlimWrapper (r=bholley)

--HG--
extra : rebase_source : 8ce6d12e100a2e3639c4d1fddbadee25e6dd12cf
This commit is contained in:
Steve Fink 2011-11-21 09:28:19 -08:00
parent 5e5f0351b2
commit 86a46c0c75

View File

@ -1036,6 +1036,9 @@ XPCConvert::NativeInterface2JSObject(XPCLazyCallContext& lccx,
return true;
}
if (JS_IsExceptionPending(cx))
return false;
// Even if ConstructSlimWrapper returns false it might have created a
// wrapper (while calling the PreCreate hook). In that case we need to
// fall through because we either have a slim wrapper that needs to be