Bug 738075 - Remove the unnecessary Class* argument from GlobalObject::createConstructor. r=dmandelin

This commit is contained in:
Jeff Walden
2012-03-21 13:32:43 -07:00
parent 1253953f7a
commit 40893ad494
14 changed files with 19 additions and 28 deletions

View File

@@ -398,7 +398,7 @@ js_InitWeakMapClass(JSContext *cx, JSObject *obj)
if (!weakMapProto)
return NULL;
JSFunction *ctor = global->createConstructor(cx, WeakMap_construct, &WeakMapClass,
JSFunction *ctor = global->createConstructor(cx, WeakMap_construct,
CLASS_ATOM(cx, WeakMap), 0);
if (!ctor)
return NULL;