diff options
Diffstat (limited to 'src/loslib.js')
-rw-r--r-- | src/loslib.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loslib.js b/src/loslib.js index 4b147cf..19dfd02 100644 --- a/src/loslib.js +++ b/src/loslib.js @@ -82,7 +82,7 @@ const checkoption = function(L, conv, i, buff) { }; /* maximum size for an individual 'strftime' item */ -const SIZETIMEFMT = 250; +// const SIZETIMEFMT = 250; const os_date = function(L) { @@ -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; |