diff --git a/src/sbbs3/js_system.c b/src/sbbs3/js_system.c index 1636b95113c55eb1659869dda1232795e5f1273a..b42d2ac0301ca60428b3a76c140881685578b328 100644 --- a/src/sbbs3/js_system.c +++ b/src/sbbs3/js_system.c @@ -2069,6 +2069,10 @@ static JSBool js_system_resolve(JSContext *cx, JSObject *obj, jsid id) return(JS_FALSE); JS_SetPrivate(cx, newobj, cfg); /* Store a pointer to scfg_t */ +#ifdef BUILD_JSDOCS + js_DescribeSyncObject(cx,newobj,"System statistics",310); + js_CreateArrayOfStrings(cx, newobj, "_property_desc_list", sysstat_prop_desc, JSPROP_READONLY); +#endif } /* node_list property */ @@ -2176,15 +2180,6 @@ JSObject* DLLCALL js_CreateSystemObject(JSContext* cx, JSObject* parent js_CreateArrayOfStrings(cx, sysobj, "_property_desc_list", sys_prop_desc, JSPROP_READONLY); #endif -#ifdef BUILD_JSDOCS - { - JSObject* statsobj; - - js_DescribeSyncObject(cx,statsobj,"System statistics",310); - js_CreateArrayOfStrings(cx, statsobj, "_property_desc_list", sysstat_prop_desc, JSPROP_READONLY); - } -#endif - return(sysobj); }