diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-27 17:58:58 +1000 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-28 14:15:58 +0200 |
commit | 58bd4012506e6dfc92dd819d4e43acad18e8b914 (patch) | |
tree | 1db44a36cdd61d8629e3485a80fe9a57997e04b8 /src/lapi.js | |
parent | 18fde8bd2285ad45baa9f9b2f16b40fb6bd3b2dd (diff) | |
download | fengari-58bd4012506e6dfc92dd819d4e43acad18e8b914.tar.gz fengari-58bd4012506e6dfc92dd819d4e43acad18e8b914.tar.bz2 fengari-58bd4012506e6dfc92dd819d4e43acad18e8b914.zip |
lua_State shouldn't subclass TValue
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js index 52bc8fa..a758a66 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -305,7 +305,7 @@ const lua_pushlightuserdata = function(L, p) { }; const lua_pushthread = function(L) { - L.stack[L.top++] = L; + L.stack[L.top++] = new TValue(CT.LUA_TTHREAD, L); assert(L.top <= L.ci.top, "stack overflow"); return L.l_G.mainthread === L; |