Bug 789635 - Clean up JSAtomState so that all atom fields are macro-defined, and move the atoms set into JSRuntime directly. r=jorendorff
This commit is contained in:
@@ -3160,7 +3160,8 @@ js_InitDateClass(JSContext *cx, JSObject *obj)
|
||||
return NULL;
|
||||
SetDateToNaN(cx, dateProto);
|
||||
|
||||
RootedFunction ctor(cx, global->createConstructor(cx, js_Date, CLASS_NAME(cx, Date), MAXARGS));
|
||||
RootedFunction ctor(cx);
|
||||
ctor = global->createConstructor(cx, js_Date, cx->runtime->atomState.DateAtom, MAXARGS);
|
||||
if (!ctor)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user