зеркало из https://github.com/mozilla/pjs.git
Bug 580128 - Deal with the outer object hook failing a little more gracefully. r=jst
This commit is contained in:
Родитель
4c00529cae
Коммит
4b1a2175d4
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче