diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-22 16:44:00 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-23 16:38:45 +1100 |
commit | 78a0d95e74eb3c4c2a4f383fe7aebe6ec8b1652a (patch) | |
tree | c0301b2e8224d292706bfc88d6e92cbd2bc54c27 /src/lualib.js | |
parent | d28bfe3d7e489f036ac3b336ecfd7b5d1bf7b0c9 (diff) | |
download | fengari-78a0d95e74eb3c4c2a4f383fe7aebe6ec8b1652a.tar.gz fengari-78a0d95e74eb3c4c2a4f383fe7aebe6ec8b1652a.tar.bz2 fengari-78a0d95e74eb3c4c2a4f383fe7aebe6ec8b1652a.zip |
Workaround linit/lualib cyclic reference
Diffstat (limited to 'src/lualib.js')
-rw-r--r-- | src/lualib.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lualib.js b/src/lualib.js index 4e98432..78f441f 100644 --- a/src/lualib.js +++ b/src/lualib.js @@ -1,14 +1,15 @@ "use strict"; const { - LUA_VERSION_MAJOR, - LUA_VERSION_MINOR + LUA_VERSION_MAJOR, + LUA_VERSION_MINOR } = require("./lua.js"); -const linit = require('./linit.js'); const LUA_VERSUFFIX = "_" + LUA_VERSION_MAJOR + "_" + LUA_VERSION_MINOR; module.exports.LUA_VERSUFFIX = LUA_VERSUFFIX; +module.exports.lua_assert = function(c) {}; + const LUA_COLIBNAME = "coroutine"; module.exports.LUA_COLIBNAME = LUA_COLIBNAME; module.exports.luaopen_coroutine = require("./lcorolib.js").luaopen_coroutine; @@ -51,7 +52,5 @@ const LUA_LOADLIBNAME = "package"; module.exports.LUA_LOADLIBNAME = LUA_LOADLIBNAME; module.exports.luaopen_package = require("./loadlib.js").luaopen_package; +const linit = require('./linit.js'); module.exports.luaL_openlibs = linit.luaL_openlibs; - -/* customary export */ -module.exports.lua_assert = function(c) {}; |