mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 09:24:07 +00:00
From Lua 5.2: debug.setmetatable() returns object.
Needs -DLUAJIT_ENABLE_LUA52COMPAT.
This commit is contained in:
parent
1afcea1435
commit
16d8c83743
@ -41,7 +41,9 @@ LJLIB_CF(debug_setmetatable)
|
||||
lj_lib_checktabornil(L, 2);
|
||||
L->top = L->base+2;
|
||||
lua_setmetatable(L, 1);
|
||||
#if !LJ_52
|
||||
setboolV(L->top-1, 1);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user