Backed out changeset 4d03c3ba2969 (bug 1131796) for bustage on a CLOSED TREE

--HG--
extra : amend_source : 07e872ce971a620a08b68fbc2b3afdcccaff8539
This commit is contained in:
Wes Kocher 2015-02-13 13:25:45 -08:00
Родитель 37a8ad1785
Коммит e1e02706d9
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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;
}