aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-22 14:28:41 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-22 15:14:45 +1100
commit2787d9ef1e2a8553dbb0a3792f2cf89f0beda218 (patch)
treeebc2fcac5fd624bc78377a3b2f6c0a684d340e47 /src
parent88f211e22db56367afd39414bf8199af234c9bd4 (diff)
downloadfengari-2787d9ef1e2a8553dbb0a3792f2cf89f0beda218.tar.gz
fengari-2787d9ef1e2a8553dbb0a3792f2cf89f0beda218.tar.bz2
fengari-2787d9ef1e2a8553dbb0a3792f2cf89f0beda218.zip
src/lualib.js: Use destructuring requires
Diffstat (limited to 'src')
-rw-r--r--src/lualib.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lualib.js b/src/lualib.js
index 61bbc76..4e98432 100644
--- a/src/lualib.js
+++ b/src/lualib.js
@@ -1,9 +1,12 @@
"use strict";
-const lua = require("./lua.js");
+const {
+ LUA_VERSION_MAJOR,
+ LUA_VERSION_MINOR
+} = require("./lua.js");
const linit = require('./linit.js');
-const LUA_VERSUFFIX = "_" + lua.LUA_VERSION_MAJOR + "_" + lua.LUA_VERSION_MINOR;
+const LUA_VERSUFFIX = "_" + LUA_VERSION_MAJOR + "_" + LUA_VERSION_MINOR;
module.exports.LUA_VERSUFFIX = LUA_VERSUFFIX;
const LUA_COLIBNAME = "coroutine";