mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Supply raw argument to luaH_clone
This commit is contained in:
parent
c1829b37e9
commit
ba4b95ac5f
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ static int tisfrozen(lua_State* L)
|
||||||
static int tclone(lua_State* L)
|
static int tclone(lua_State* L)
|
||||||
{
|
{
|
||||||
luaL_checktype(L, 1, LUA_TTABLE);
|
luaL_checktype(L, 1, LUA_TTABLE);
|
||||||
Table* tt = luaH_clone(L, hvalue(L->base));
|
Table* tt = luaH_clone(L, hvalue(L->base), luaL_getmetafield(L, 1, "__metatable") ? true : false);
|
||||||
TValue v;
|
TValue v;
|
||||||
sethvalue(L, &v, tt);
|
sethvalue(L, &v, tt);
|
||||||
luaA_pushobject(L, &v);
|
luaA_pushobject(L, &v);
|
||||||
|
|
Loading…
Add table
Reference in a new issue