Rename RootedVar to Rooted, bug 756823. r=billm

This commit is contained in:
Brian Hackett
2012-05-24 16:05:18 -07:00
parent f4fa29d00b
commit 662da160da
84 changed files with 1187 additions and 1187 deletions

View File

@@ -274,7 +274,7 @@ JS_NondeterministicGetWeakMapKeys(JSContext *cx, JSObject *obj, JSObject **ret)
*ret = NULL;
return true;
}
RootedVarObject arr(cx, NewDenseEmptyArray(cx));
RootedObject arr(cx, NewDenseEmptyArray(cx));
if (!arr)
return false;
ObjectValueMap *map = GetObjectMap(obj);
@@ -358,13 +358,13 @@ js_InitWeakMapClass(JSContext *cx, JSObject *obj)
{
JS_ASSERT(obj->isNative());
RootedVar<GlobalObject*> global(cx, &obj->asGlobal());
Rooted<GlobalObject*> global(cx, &obj->asGlobal());
RootedVarObject weakMapProto(cx, global->createBlankPrototype(cx, &WeakMapClass));
RootedObject weakMapProto(cx, global->createBlankPrototype(cx, &WeakMapClass));
if (!weakMapProto)
return NULL;
RootedVarFunction ctor(cx);
RootedFunction ctor(cx);
ctor = global->createConstructor(cx, WeakMap_construct,
CLASS_NAME(cx, WeakMap), 0);
if (!ctor)