Bug 1112778, part 1 - Remove namespace baseops. Rename js::baseops::DefineGeneric -> js::NativeDefineProperty and so on. r=Waldo.

This commit is contained in:
Jason Orendorff
2014-12-17 15:55:32 -06:00
parent 40ae4ccac9
commit 792b981f50
27 changed files with 241 additions and 260 deletions

View File

@@ -3012,9 +3012,9 @@ FinishDateClassInit(JSContext *cx, HandleObject ctor, HandleObject proto)
RootedValue toUTCStringFun(cx);
RootedId toUTCStringId(cx, NameToId(cx->names().toUTCString));
RootedId toGMTStringId(cx, NameToId(cx->names().toGMTString));
return baseops::GetProperty(cx, proto.as<DateObject>(), toUTCStringId, &toUTCStringFun) &&
baseops::DefineGeneric(cx, proto.as<DateObject>(), toGMTStringId, toUTCStringFun,
nullptr, nullptr, 0);
return NativeGetProperty(cx, proto.as<DateObject>(), toUTCStringId, &toUTCStringFun) &&
NativeDefineProperty(cx, proto.as<DateObject>(), toGMTStringId, toUTCStringFun,
nullptr, nullptr, 0);
}
const Class DateObject::class_ = {