Bug 828248 - Part a: Pass MutableHandleId to ValueToId and DoubleIndexToId; r=sfink

This commit is contained in:
Ms2ger
2013-01-11 09:43:00 +01:00
parent 29b65aba4b
commit 6ea5e853c7
14 changed files with 61 additions and 42 deletions

View File

@@ -1107,7 +1107,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
RootedObject obj2(cx);
RootedShape prop(cx);
RootedId id(cx);
if (!ValueToId(cx, StringValue(*idp), id.address()))
if (!ValueToId(cx, StringValue(*idp), &id))
return false;
if (!JSObject::lookupGeneric(cx, proto, id, &obj2, &prop))
return false;
@@ -1238,7 +1238,7 @@ js_IteratorMore(JSContext *cx, HandleObject iterobj, MutableHandleValue rval)
if (ni) {
JS_ASSERT(!ni->isKeyIter());
RootedId id(cx);
if (!ValueToId(cx, StringValue(*ni->current()), id.address()))
if (!ValueToId(cx, StringValue(*ni->current()), &id))
return false;
ni->incCursor();
RootedObject obj(cx, ni->obj);