summaryrefslogtreecommitdiff
path: root/src/loslib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-08-17 15:39:34 +1000
committerdaurnimator <quae@daurnimator.com>2017-08-17 15:39:34 +1000
commit8548cda030f991823be151af16b18a7527db155a (patch)
tree7f5f0c88950096f817d1c99c8e73233c3d90e115 /src/loslib.js
parent901a0c2b833fd99a36c21dea71a548d9d7df2be0 (diff)
downloadfengari-8548cda030f991823be151af16b18a7527db155a.tar.gz
fengari-8548cda030f991823be151af16b18a7527db155a.tar.bz2
fengari-8548cda030f991823be151af16b18a7527db155a.zip
src/loslib.js: Use WEB define instead of checking for process global
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 baaee74..a35f150 100644
--- a/src/loslib.js
+++ b/src/loslib.js
@@ -150,7 +150,7 @@ const syslib = {
};
// Only with Node
-if (process && process.exit && process.env && process.uptime) {
+if (!WEB) {
const os_exit = function(L) {
let status;
if (lua.lua_isboolean(L, 1))