Bug 852436 - nsWrapperCache::WrapObject returning false means failure, even if there's no pending exception. r=bz

This commit is contained in:
Blake Kaplan 2013-03-28 15:45:01 -07:00
parent 9a8de99fad
commit 2f2b2f179e

View File

@ -840,9 +840,8 @@ XPCConvert::NativeInterface2JSObject(XPCLazyCallContext& lccx,
if (!flat) {
flat = cache->WrapObject(lccx.GetJSContext(),
xpcscope->GetGlobalJSObject());
if (!flat && JS_IsExceptionPending(lccx.GetJSContext())) {
if (!flat)
return false;
}
}
if (flat) {