Bug 975589, part 1 - Rename js::DefineConstructorAndPrototype -> GlobalObject::initBuiltinConstructor and refactor it a bit. r=jwalden.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user