Bug 580128 - Deal with the outer object hook failing a little more gracefully. r=jst

This commit is contained in:
Blake Kaplan 2010-10-10 15:49:51 -07:00
parent 645d07dc67
commit 05061dd1c1

View File

@ -95,6 +95,8 @@ WrapperFactory::PrepareForWrapping(JSContext *cx, JSObject *scope, JSObject *obj
// We only hand out outer objects to script.
OBJ_TO_OUTER_OBJECT(cx, obj);
if (!obj)
return nsnull;
// Now, our object is ready to be wrapped, but several objects (notably
// nsJSIIDs) have a wrapper per scope. If we are about to wrap one of