summaryrefslogtreecommitdiff
path: root/src/defs.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-22 14:01:48 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-22 14:01:48 +1100
commitc31664816834345c9e35da78307bb7b9c29f2fbf (patch)
tree034c28e79a20fa02b984e3c120f8dd367422dde2 /src/defs.js
parent8217b477991107656b071593d69a0121a226a7f9 (diff)
downloadfengari-c31664816834345c9e35da78307bb7b9c29f2fbf.tar.gz
fengari-c31664816834345c9e35da78307bb7b9c29f2fbf.tar.bz2
fengari-c31664816834345c9e35da78307bb7b9c29f2fbf.zip
Use destruturing require for luaconf.js
Diffstat (limited to 'src/defs.js')
-rw-r--r--src/defs.js4
1 files changed, 2 insertions, 2 deletions
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;