From 6d07675c7397e351c8c15ae961f8ad06c3f9d8a6 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 22:57:35 +1000 Subject: Remove lightuserdata object subtype --- src/lstrlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lstrlib.js') diff --git a/src/lstrlib.js b/src/lstrlib.js index 950dca0..370e672 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -1262,7 +1262,7 @@ const str_gmatch = function(L) { let lp = p.length; lua.lua_settop(L, 2); /* keep them on closure to avoid being collected */ let gm = new GMatchState(); - lua.lua_pushobject(L, gm); + lua.lua_pushlightuserdata(L, gm); prepstate(gm.ms, L, s, ls, p, lp); gm.src = 0; gm.p = 0; -- cgit v1.2.3-54-g00ecf