Bug 975589, part 1 - Rename js::DefineConstructorAndPrototype -> GlobalObject::initBuiltinConstructor and refactor it a bit. r=jwalden.

This commit is contained in:
Jason Orendorff
2014-03-10 16:29:40 -05:00
parent b84c508dc5
commit 1f7f9f3949
15 changed files with 58 additions and 63 deletions

View File

@@ -459,7 +459,7 @@ js_InitWeakMapClass(JSContext *cx, HandleObject obj)
if (!DefinePropertiesAndBrand(cx, weakMapProto, nullptr, weak_map_methods))
return nullptr;
if (!DefineConstructorAndPrototype(cx, global, JSProto_WeakMap, ctor, weakMapProto))
if (!GlobalObject::initBuiltinConstructor(cx, global, JSProto_WeakMap, ctor, weakMapProto))
return nullptr;
return weakMapProto;
}