From c31664816834345c9e35da78307bb7b9c29f2fbf Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 22 Jan 2018 14:01:48 +1100 Subject: Use destruturing require for luaconf.js --- src/defs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/defs.js') diff --git a/src/defs.js b/src/defs.js index 80a3906..05e0048 100644 --- a/src/defs.js +++ b/src/defs.js @@ -1,6 +1,6 @@ "use strict"; -const luaconf = require('./luaconf.js'); +const { LUAI_MAXSTACK } = require('./luaconf.js'); // To avoid charCodeAt everywhere const char = []; @@ -85,7 +85,7 @@ const LUA_OPLE = 2; const LUA_MINSTACK = 20; -const LUA_REGISTRYINDEX = -luaconf.LUAI_MAXSTACK - 1000; +const LUA_REGISTRYINDEX = -LUAI_MAXSTACK - 1000; const lua_upvalueindex = function(i) { return LUA_REGISTRYINDEX - i; -- cgit v1.2.3-54-g00ecf