Bug 925739 - Rename cx->names().classPrototype to just cx->names().prototype, for readability/predictability. r=jorendorff

This commit is contained in:
Jeff Walden
2013-10-11 15:24:44 +02:00
parent cc1a9717f5
commit faaaec644a
13 changed files with 26 additions and 26 deletions

View File

@@ -1557,7 +1557,7 @@ js_NewGenerator(JSContext *cx, const FrameRegs &stackRegs)
RootedObject fun(cx, stackfp->fun());
// FIXME: This would be faster if we could avoid doing a lookup to get
// the prototype for the instance. Bug 906600.
if (!JSObject::getProperty(cx, fun, fun, cx->names().classPrototype, &pval))
if (!JSObject::getProperty(cx, fun, fun, cx->names().prototype, &pval))
return nullptr;
JSObject *proto = pval.isObject() ? &pval.toObject() : nullptr;
if (!proto) {