From 2787d9ef1e2a8553dbb0a3792f2cf89f0beda218 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 22 Jan 2018 14:28:41 +1100 Subject: src/lualib.js: Use destructuring requires --- src/lualib.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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"; -- cgit v1.2.3-70-g09d2