Bug 738075 - Remove the unnecessary Class* argument from GlobalObject::createConstructor. r=dmandelin
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user