Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug

This commit is contained in:
Jon Coppeard
2013-07-26 10:00:38 +01:00
parent 26da22d0c1
commit 775f06b442
52 changed files with 186 additions and 181 deletions

View File

@@ -42,7 +42,7 @@ static JSBool
SealObjectAndPrototype(JSContext* cx, JSObject* parent, const char* name)
{
JS::Rooted<JS::Value> prop(cx);
if (!JS_GetProperty(cx, parent, name, prop.address()))
if (!JS_GetProperty(cx, parent, name, &prop))
return false;
if (prop.isUndefined()) {
@@ -51,7 +51,7 @@ SealObjectAndPrototype(JSContext* cx, JSObject* parent, const char* name)
}
JS::Rooted<JSObject*> obj(cx, prop.toObjectOrNull());
if (!JS_GetProperty(cx, obj, "prototype", prop.address()))
if (!JS_GetProperty(cx, obj, "prototype", &prop))
return false;
JS::Rooted<JSObject*> prototype(cx, prop.toObjectOrNull());