summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 22:57:35 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 22:57:35 +1000
commit6d07675c7397e351c8c15ae961f8ad06c3f9d8a6 (patch)
tree10b201da587b4cd70a22b0a344b6ff05319a4582 /src/lapi.js
parentbbddfc24c304d2f519805db62a463695eab89295 (diff)
downloadfengari-6d07675c7397e351c8c15ae961f8ad06c3f9d8a6.tar.gz
fengari-6d07675c7397e351c8c15ae961f8ad06c3f9d8a6.tar.bz2
fengari-6d07675c7397e351c8c15ae961f8ad06c3f9d8a6.zip
Remove lightuserdata object subtype
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lapi.js b/src/lapi.js
index eeb4137..6d75e44 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -299,13 +299,7 @@ const lua_pushboolean = function(L, b) {
};
const lua_pushlightuserdata = function(L, p) {
- L.stack[L.top++] = new TValue(CT.LUA_TLIGHTUSERDATA_PTR, p);
-
- assert(L.top <= L.ci.top, "stack overflow");
-};
-
-const lua_pushobject = function(L, p) {
- L.stack[L.top++] = new TValue(CT.LUA_TLIGHTUSERDATA_OBJ, p);
+ L.stack[L.top++] = new TValue(CT.LUA_TLIGHTUSERDATA, p);
assert(L.top <= L.ci.top, "stack overflow");
};
@@ -1071,7 +1065,6 @@ module.exports.lua_pushliteral = lua_pushliteral;
module.exports.lua_pushlstring = lua_pushlstring;
module.exports.lua_pushnil = lua_pushnil;
module.exports.lua_pushnumber = lua_pushnumber;
-module.exports.lua_pushobject = lua_pushobject;
module.exports.lua_pushstring = lua_pushstring;
module.exports.lua_pushthread = lua_pushthread;
module.exports.lua_pushtvalue = lua_pushtvalue;