зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 4d03c3ba2969 (bug 1131796) for bustage on a CLOSED TREE
--HG-- extra : amend_source : 07e872ce971a620a08b68fbc2b3afdcccaff8539
This commit is contained in:
Родитель
37a8ad1785
Коммит
e1e02706d9
|
@ -112,8 +112,9 @@ DOMProxyHandler::EnsureExpandoObject(JSContext* cx, JS::Handle<JSObject*> obj)
|
|||
expandoAndGeneration = nullptr;
|
||||
}
|
||||
|
||||
JS::Rooted<JSObject*> parent(cx, js::GetObjectParent(obj));
|
||||
JS::Rooted<JSObject*> expando(cx,
|
||||
JS_NewObjectWithGivenProto(cx, nullptr, JS::NullPtr()));
|
||||
JS_NewObjectWithGivenProto(cx, nullptr, JS::NullPtr(), parent));
|
||||
if (!expando) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче