Bug 933681 - Always stash resolved constructors in global slots, and kill markStandardClassInitializedNoProto. r=jorendorff

This is necessary to see this stuff over Xrays.
This commit is contained in:
Bobby Holley
2013-11-22 10:55:41 -08:00
parent cd09683ae7
commit f6f0f943f5
6 changed files with 13 additions and 20 deletions

View File

@@ -1945,7 +1945,7 @@ GlobalObject::initIteratorClasses(JSContext *cx, Handle<GlobalObject *> global)
if (!DefineConstructorAndPrototype(cx, global, JSProto_StopIteration, proto, proto))
return false;
global->markStandardClassInitializedNoProto(&StopIterationObject::class_);
global->setConstructor(JSProto_StopIteration, ObjectValue(*proto));
}
return true;