Skip to content
Snippets Groups Projects
Commit 237ace32 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 4eb9c633
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1963 passed
......@@ -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