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:
Jeff Walden
2012-09-06 13:48:40 -07:00
parent d9d8c4acfb
commit 568284dc14
39 changed files with 446 additions and 475 deletions

View File

@@ -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;