Bug 713311 - give the remaining scope objects typed interfaces (r=waldo)

This commit is contained in:
Luke Wagner
2012-01-02 15:02:05 -08:00
parent 833fc08689
commit 63d604536b
75 changed files with 2040 additions and 1904 deletions

View File

@@ -1012,12 +1012,12 @@ js_InitNumberClass(JSContext *cx, JSObject *obj)
/* XXX must do at least once per new thread, so do it per JSContext... */
FIX_FPU();
GlobalObject *global = obj->asGlobal();
GlobalObject *global = &obj->asGlobal();
JSObject *numberProto = global->createBlankPrototype(cx, &NumberClass);
if (!numberProto)
return NULL;
numberProto->asNumber()->setPrimitiveValue(0);
numberProto->asNumber().setPrimitiveValue(0);
JSFunction *ctor = global->createConstructor(cx, Number, &NumberClass,
CLASS_ATOM(cx, Number), 1);