diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-11 14:02:23 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-11 15:19:18 +1000 |
commit | e7cf17565e26dc5c4a100688526b0dfed1220e44 (patch) | |
tree | ee4606b23f9c62ecf0e6da20dcbf0472d5339fd9 /src/lualib.js | |
parent | be3f9810115cbaded69be37ebc3d088ee252a225 (diff) | |
download | fengari-e7cf17565e26dc5c4a100688526b0dfed1220e44.tar.gz fengari-e7cf17565e26dc5c4a100688526b0dfed1220e44.tar.bz2 fengari-e7cf17565e26dc5c4a100688526b0dfed1220e44.zip |
Move luaL_openlibs from lauxlib to lualib
Diffstat (limited to 'src/lualib.js')
-rw-r--r-- | src/lualib.js | 5 |
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; |