summaryrefslogtreecommitdiff
path: root/src/lualib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lualib.js')
-rw-r--r--src/lualib.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lualib.js b/src/lualib.js
index ed02273..b3ba5f8 100644
--- a/src/lualib.js
+++ b/src/lualib.js
@@ -1,7 +1,8 @@
/*jshint esversion: 6 */
"use strict";
-const lua = require("./lua.js");
+const lua = require("./lua.js");
+const linit = require('./linit.js');
const LUA_VERSUFFIX = "_" + lua.LUA_VERSION_MAJOR + "_" + lua.LUA_VERSION_MINOR;
module.exports.LUA_VERSUFFIX = LUA_VERSUFFIX;
@@ -47,3 +48,5 @@ module.exports[LUA_DBLIBNAME] = require("./ldblib.js").luaopen_debug;
const LUA_LOADLIBNAME = "package";
module.exports.LUA_LOADLIBNAME = LUA_LOADLIBNAME;
module.exports[LUA_LOADLIBNAME] = require("./loadlib.js").luaopen_package;
+
+module.exports.luaL_openlibs = linit.luaL_openlibs;