From c4b23126f0cb803ec944c5d7877bbf669f582374 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 21 Mar 2017 14:05:14 +0100 Subject: Userdata are ArrayBuffers, new lightuserdata subtype for js objects --- src/lua.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lua.js') 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 */ -- cgit v1.2.3-54-g00ecf