aboutsummaryrefslogtreecommitdiff
path: root/src/lua.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 14:05:14 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 14:05:14 +0100
commitc4b23126f0cb803ec944c5d7877bbf669f582374 (patch)
tree9c2bf5740ee89268e57f73574ec3abe870a4e160 /src/lua.js
parent932875c87ab3f2ed2b676a98f273392661535f65 (diff)
downloadfengari-c4b23126f0cb803ec944c5d7877bbf669f582374.tar.gz
fengari-c4b23126f0cb803ec944c5d7877bbf669f582374.tar.bz2
fengari-c4b23126f0cb803ec944c5d7877bbf669f582374.zip
Userdata are ArrayBuffers, new lightuserdata subtype for js objects
Diffstat (limited to 'src/lua.js')
-rw-r--r--src/lua.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua.js b/src/lua.js
index be6cc1e..d7bfa01 100644
--- a/src/lua.js
+++ b/src/lua.js
@@ -60,6 +60,9 @@ const 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 */
+constant_types.LUA_TLIGHTUSERDATA_PTR = constant_types.LUA_TLIGHTUSERDATA | (0 << 4); /* short strings */
+constant_types.LUA_TLIGHTUSERDATA_OBJ = constant_types.LUA_TLIGHTUSERDATA | (1 << 4); /* long strings */
+
constant_types.LUA_TNUMFLT = constant_types.LUA_TNUMBER | (0 << 4); /* float numbers */
constant_types.LUA_TNUMINT = constant_types.LUA_TNUMBER | (1 << 4); /* integer numbers */