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

@@ -2654,8 +2654,7 @@ js_InitDateClass(JSContext *cx, JSObject *obj)
return NULL;
SetDateToNaN(cx, dateProto);
JSFunction *ctor = global->createConstructor(cx, js_Date, &DateClass,
CLASS_ATOM(cx, Date), MAXARGS);
JSFunction *ctor = global->createConstructor(cx, js_Date, CLASS_ATOM(cx, Date), MAXARGS);
if (!ctor)
return NULL;