Bug 975589, part 3 - Remove redundant AutoResolving object when resolving a builtin constructor. CallResolveOp still creates one. r=jwalden.

This commit is contained in:
Jason Orendorff 2014-03-10 16:30:21 -05:00
parent e93df5cdf6
commit 89556d234c

View File

@ -3241,10 +3241,6 @@ MaybeResolveConstructor(ExclusiveContext *cxArg, Handle<GlobalObject*> global, J
return false;
JSContext *cx = cxArg->asJSContext();
RootedId name(cx, NameToId(ClassName(key, cx)));
AutoResolving resolving(cx, global, name);
if (resolving.alreadyStarted())
return true;
return GlobalObject::resolveConstructor(cx, global, key);
}