From 8548cda030f991823be151af16b18a7527db155a Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 17 Aug 2017 15:39:34 +1000 Subject: src/loslib.js: Use WEB define instead of checking for process global --- src/loslib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3-70-g09d2