Bug 936232 - Use setConstructor for TypedObject. r=jorendorff

This commit is contained in:
Bobby Holley 2013-11-17 18:44:29 -08:00
parent bf8b28b514
commit ed185f8be3

View File

@ -1297,9 +1297,8 @@ js_InitTypedObjectClass(JSContext *cx, HandleObject obj)
nullptr, nullptr,
0))
return nullptr;
global->setReservedSlot(JSProto_TypedObject, moduleValue);
global->setConstructor(JSProto_TypedObject, moduleValue);
global->setArrayType(arrayType);
global->markStandardClassInitializedNoProto(&TypedObjectClass);
// Handle