Skip to content
Snippets Groups Projects
Commit b683dc17 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Populate system.uptime in JSDoor

This variable tracks the time that jsdoor was started.
parent ec74ed71
Branches
Tags
No related merge requests found
......@@ -2657,11 +2657,9 @@ JSObject* js_CreateSystemObject(JSContext* cx, JSObject* parent
/***********************/
#ifndef JSDOOR
val=DOUBLE_TO_JSVAL((double)uptime);
if(!JS_SetProperty(cx, sysobj, "uptime", &val))
return(NULL);
#endif
#ifdef BUILD_JSDOCS
js_DescribeSyncObject(cx,sysobj,"Global system-related properties and methods",310);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment