summaryrefslogtreecommitdiff
path: root/src/linit.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-03-30 15:23:45 +1100
committerdaurnimator <quae@daurnimator.com>2018-03-30 15:29:59 +1100
commit955c73898c992ef15396bafdf4383ce8a9bf1843 (patch)
treeef605da9f7f946bf35f7397d2dbadded219cb45f /src/linit.js
parente1ac6d64eb82550f3b935ac7d0e81bd1a201cd8e (diff)
downloadfengari-955c73898c992ef15396bafdf4383ce8a9bf1843.tar.gz
fengari-955c73898c992ef15396bafdf4383ce8a9bf1843.tar.bz2
fengari-955c73898c992ef15396bafdf4383ce8a9bf1843.zip
Add 'fengari' library containing version numbers etc
Diffstat (limited to 'src/linit.js')
-rw-r--r--src/linit.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linit.js b/src/linit.js
index a265045..8f461a4 100644
--- a/src/linit.js
+++ b/src/linit.js
@@ -38,3 +38,7 @@ loadedlibs[lualib.LUA_UTF8LIBNAME] = luaopen_utf8;
loadedlibs[lualib.LUA_DBLIBNAME] = luaopen_debug;
if (typeof process !== "undefined")
loadedlibs[lualib.LUA_IOLIBNAME] = require('./liolib.js').luaopen_io;
+
+/* Extension: fengari library */
+const { luaopen_fengari } = require('./fengarilib.js');
+loadedlibs[lualib.LUA_FENGARILIBNAME] = luaopen_fengari;