diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-26 22:57:35 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-26 22:57:35 +1000 |
commit | 6d07675c7397e351c8c15ae961f8ad06c3f9d8a6 (patch) | |
tree | 10b201da587b4cd70a22b0a344b6ff05319a4582 /src/lstrlib.js | |
parent | bbddfc24c304d2f519805db62a463695eab89295 (diff) | |
download | fengari-6d07675c7397e351c8c15ae961f8ad06c3f9d8a6.tar.gz fengari-6d07675c7397e351c8c15ae961f8ad06c3f9d8a6.tar.bz2 fengari-6d07675c7397e351c8c15ae961f8ad06c3f9d8a6.zip |
Remove lightuserdata object subtype
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r-- | src/lstrlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |