summaryrefslogtreecommitdiff
path: root/src/loslib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/loslib.js')
-rw-r--r--src/loslib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loslib.js b/src/loslib.js
index 4b147cf..16df4ea 100644
--- a/src/loslib.js
+++ b/src/loslib.js
@@ -157,7 +157,7 @@ const syslib = {
"time": os_time
};
-if (WEB) {
+if (typeof process === "undefined") {
syslib.clock = function(L) {
lua.lua_pushnumber(L, performance.now()/1000);
return 1;