aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-31 13:08:00 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-31 13:08:00 +1000
commit043dfbed7c500ba58d44da808c403575e4b83f38 (patch)
tree3e34d2264e5552e3a19da77f2d1025de5b1cdc64 /src
parentd0018d43f46d3c32508094a3a3c2e73cc6acf3ff (diff)
downloadfengari-043dfbed7c500ba58d44da808c403575e4b83f38.tar.gz
fengari-043dfbed7c500ba58d44da808c403575e4b83f38.tar.bz2
fengari-043dfbed7c500ba58d44da808c403575e4b83f38.zip
LUA_NUMTAGS is inside constant_types
Diffstat (limited to 'src')
-rw-r--r--src/defs.js2
-rw-r--r--src/lstate.js2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/defs.js b/src/defs.js
index 5091fb2..9e0fa5c 100644
--- a/src/defs.js
+++ b/src/defs.js
@@ -97,7 +97,6 @@ const LUA_OPEQ = 0;
const LUA_OPLT = 1;
const LUA_OPLE = 2;
-const LUA_NUMTAGS = 9;
const LUA_MINSTACK = 20;
const LUA_REGISTRYINDEX = -luaconf.LUAI_MAXSTACK - 1000;
@@ -371,7 +370,6 @@ module.exports.LUA_MASKLINE = LUA_MASKLINE;
module.exports.LUA_MASKRET = LUA_MASKRET;
module.exports.LUA_MINSTACK = LUA_MINSTACK;
module.exports.LUA_MULTRET = -1;
-module.exports.LUA_NUMTAGS = LUA_NUMTAGS;
module.exports.LUA_OPADD = LUA_OPADD;
module.exports.LUA_OPBAND = LUA_OPBAND;
module.exports.LUA_OPBNOT = LUA_OPBNOT;
diff --git a/src/lstate.js b/src/lstate.js
index 9046adf..6cd906d 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -12,7 +12,7 @@ const lfunc = require('./lfunc.js');
const ltm = require('./ltm.js');
const CT = defs.constant_types;
const TS = defs.thread_status;
-const LUA_NUMTAGS = defs.LUA_NUMTAGS;
+const LUA_NUMTAGS = CT.LUA_NUMTAGS;
const EXTRA_STACK = 5;