diff options
Diffstat (limited to 'src/linit.js')
-rw-r--r-- | src/linit.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linit.js b/src/linit.js index 90ad978..97cbfc9 100644 --- a/src/linit.js +++ b/src/linit.js @@ -26,7 +26,7 @@ const luaL_openlibs = function(L) { "_G": lbaselib.luaopen_base }; - if (!WEB) loadedlibs[lualib.LUA_IOLIBNAME] = require('./liolib.js').luaopen_io; + if (typeof process !== "undefined") loadedlibs[lualib.LUA_IOLIBNAME] = require('./liolib.js').luaopen_io; /* "require" functions from 'loadedlibs' and set results to global table */ for (let lib in loadedlibs) { |