diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:36:14 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-09 11:36:14 +0200 |
commit | 697ef457e1b0eabd3aa9fb2332a5d04478b39603 (patch) | |
tree | 4d93ec7e3d1cc698a5c54de9785d688bf510ed15 /src/linit.js | |
parent | 3e439ed653093e6e124a4997f64053164f1043b8 (diff) | |
download | fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.gz fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.tar.bz2 fengari-697ef457e1b0eabd3aa9fb2332a5d04478b39603.zip |
Webpack (single bundle for now)
Diffstat (limited to 'src/linit.js')
-rw-r--r-- | src/linit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linit.js b/src/linit.js index 6cc48b1..4139f20 100644 --- a/src/linit.js +++ b/src/linit.js @@ -9,7 +9,6 @@ const lstrlib = require('./lstrlib.js'); const ltablib = require('./ltablib.js'); const lutf8lib = require('./lutf8lib.js'); const ldblib = require('./ldblib.js'); -const liolib = require('./liolib.js'); const loslib = require('./loslib.js'); const loadlib = require('./loadlib.js'); const lualib = require('./lualib.js'); @@ -19,7 +18,6 @@ const loadedlibs = { [lualib.LUA_COLIBNAME]: lcorolib.luaopen_coroutine, [lualib.LUA_DBLIBNAME]: ldblib.luaopen_debug, [lualib.LUA_MATHLIBNAME]: lmathlib.luaopen_math, - [lualib.LUA_IOLIBNAME]: liolib.luaopen_io, [lualib.LUA_OSLIBNAME]: loslib.luaopen_os, [lualib.LUA_STRLIBNAME]: lstrlib.luaopen_string, [lualib.LUA_TABLIBNAME]: ltablib.luaopen_table, @@ -27,6 +25,8 @@ const loadedlibs = { "_G": lbaselib.luaopen_base }; +if (!WEB) loadedlibs[lualib.LUA_IOLIBNAME] = require('./liolib.js').luaopen_io; + const luaL_openlibs = function(L) { /* "require" functions from 'loadedlibs' and set results to global table */ for (let lib in loadedlibs) { |