From 89556d234cb517420ebcd377093c967e56a7a9bd Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Mon, 10 Mar 2014 16:30:21 -0500 Subject: [PATCH] Bug 975589, part 3 - Remove redundant AutoResolving object when resolving a builtin constructor. CallResolveOp still creates one. r=jwalden. --- js/src/jsobj.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index ae04686985a..1e4436fc3e2 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -3241,10 +3241,6 @@ MaybeResolveConstructor(ExclusiveContext *cxArg, Handle 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); }