Bug 849420 - Use MaybeRooted instead of Shape::AutoRooter, r=sfink.

This commit is contained in:
Brian Hackett
2013-03-11 15:50:01 -06:00
parent df55944066
commit 794c157240
12 changed files with 29 additions and 64 deletions

View File

@@ -142,8 +142,7 @@ EnumerateNativeProperties(JSContext *cx, HandleObject pobj, unsigned flags, IdSe
size_t initialLength = props->length();
/* Collect all unique properties from this object's scope. */
Shape::Range r = pobj->lastProperty()->all();
Shape::Range::AutoRooter root(cx, &r);
Shape::Range<NoGC> r(pobj->lastProperty());
for (; !r.empty(); r.popFront()) {
Shape &shape = r.front();