Bug 925739 - Rename cx->names().classPrototype to just cx->names().prototype, for readability/predictability. r=jorendorff
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user