summaryrefslogtreecommitdiff
path: root/src/lua.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-02 11:31:05 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-02 11:31:05 +0100
commitaee0f65dea0456635e96b4496f6597188526e647 (patch)
tree3afcb057b08b3a6b7ce091111e7be0db236ff3f4 /src/lua.js
parenteb838303ed7c3ddc2da0665ed0b5ca3843bf7b96 (diff)
downloadfengari-aee0f65dea0456635e96b4496f6597188526e647.tar.gz
fengari-aee0f65dea0456635e96b4496f6597188526e647.tar.bz2
fengari-aee0f65dea0456635e96b4496f6597188526e647.zip
[Parsing tests] SETTABUP, GETTABUP
Diffstat (limited to 'src/lua.js')
-rw-r--r--src/lua.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua.js b/src/lua.js
index ef5385c..95d0ef8 100644
--- a/src/lua.js
+++ b/src/lua.js
@@ -57,8 +57,6 @@ const constant_types = {
LUA_NUMTAGS: 9
};
-const CT = constant_types;
-
constant_types.LUA_TSHRSTR = constant_types.LUA_TSTRING | (0 << 4); /* short strings */
constant_types.LUA_TLNGSTR = constant_types.LUA_TSTRING | (1 << 4); /* long strings */
@@ -69,6 +67,8 @@ constant_types.LUA_TLCL = constant_types.LUA_TFUNCTION | (0 << 4); /* Lua closu
constant_types.LUA_TLCF = constant_types.LUA_TFUNCTION | (1 << 4); /* light C function */
constant_types.LUA_TCCL = constant_types.LUA_TFUNCTION | (2 << 4); /* C closure */
+const CT = constant_types;
+
/*
** Comparison and arithmetic functions
*/