summaryrefslogtreecommitdiff
path: root/src/linit.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-25 19:01:45 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 21:30:58 +1000
commitf93607f954c002b251fba4e0b85493e0b2b619b4 (patch)
tree0c4de91da925ff70a092a792659e95a69e751b8a /src/linit.js
parent31c5b59ab91fa94a62bc958d30060625acff4afe (diff)
downloadfengari-f93607f954c002b251fba4e0b85493e0b2b619b4.tar.gz
fengari-f93607f954c002b251fba4e0b85493e0b2b619b4.tar.bz2
fengari-f93607f954c002b251fba4e0b85493e0b2b619b4.zip
Add (empty) io library
Diffstat (limited to 'src/linit.js')
-rw-r--r--src/linit.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linit.js b/src/linit.js
index 3d18e2f..925b55a 100644
--- a/src/linit.js
+++ b/src/linit.js
@@ -10,6 +10,7 @@ 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 lualib = require('./lualib.js');
@@ -17,6 +18,7 @@ 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,