summaryrefslogtreecommitdiff
path: root/src/linit.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-18 10:37:02 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-18 10:50:25 +0200
commit5f6d2e34f69d14c57e7f2964aa951c8dab4efc99 (patch)
treeb3caa950722eb8739bfa962f723e14d106be1b55 /src/linit.js
parentc709857c7d6d1af740a5763ac0c78e010dd1757e (diff)
downloadfengari-5f6d2e34f69d14c57e7f2964aa951c8dab4efc99.tar.gz
fengari-5f6d2e34f69d14c57e7f2964aa951c8dab4efc99.tar.bz2
fengari-5f6d2e34f69d14c57e7f2964aa951c8dab4efc99.zip
os.time
Diffstat (limited to 'src/linit.js')
-rw-r--r--src/linit.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/linit.js b/src/linit.js
index 9425ae7..fa827cb 100644
--- a/src/linit.js
+++ b/src/linit.js
@@ -12,15 +12,17 @@ const lstrlib = require('./lstrlib.js');
const ltablib = require('./ltablib.js');
const lutf8lib = require('./lutf8lib.js');
const ldblib = require('./ldblib.js');
+const loslib = require('./loslib.js');
const lualib = require('./lualib.js');
const loadedlibs = {
[lualib.LUA_COLIBNAME]: lcorolib.luaopen_coroutine,
+ [lualib.LUA_DBLIBNAME]: ldblib.luaopen_debug,
[lualib.LUA_MATHLIBNAME]: lmathlib.luaopen_math,
+ [lualib.LUA_OSLIBNAME]: loslib.luaopen_os,
[lualib.LUA_STRLIBNAME]: lstrlib.luaopen_string,
[lualib.LUA_TABLIBNAME]: ltablib.luaopen_table,
[lualib.LUA_UTF8LIBNAME]: lutf8lib.luaopen_utf8,
- [lualib.LUA_DBLIBNAME]: ldblib.luaopen_debug,
"_G": lbaselib.luaopen_base
};