Backed out changeset d3c9b899f7d2 (bug 1143256) for frequent browser_perf-refresh.js leaks.

This commit is contained in:
Ryan VanderMeulen
2015-03-20 16:07:42 -04:00
parent 969132c9e0
commit f274f35656
38 changed files with 557 additions and 267 deletions

View File

@@ -477,8 +477,12 @@ NewPropertyIteratorObject(JSContext *cx, unsigned flags)
if (!group)
return nullptr;
JSObject *metadata = nullptr;
if (!NewObjectMetadata(cx, &metadata))
return nullptr;
const Class *clasp = &PropertyIteratorObject::class_;
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, TaggedProto(nullptr),
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, TaggedProto(nullptr), metadata,
ITERATOR_FINALIZE_KIND));
if (!shape)
return nullptr;