update lua 5.4.8 rc1

This commit is contained in:
Cloud Wu
2025-05-22 07:47:18 +08:00
parent 077d1fbd64
commit e0bc6fe2d6
10 changed files with 50 additions and 28 deletions

View File

@@ -341,7 +341,10 @@ void luaV_finishset (lua_State *L, const TValue *t, TValue *key,
lua_assert(isempty(slot)); /* slot must be empty */
tm = fasttm(L, h->metatable, TM_NEWINDEX); /* get metamethod */
if (tm == NULL) { /* no metamethod? */
sethvalue2s(L, L->top.p, h); /* anchor 't' */
L->top.p++; /* assume EXTRA_STACK */
luaH_finishset(L, h, key, slot, val); /* set new value */
L->top.p--;
invalidateTMcache(h);
luaC_barrierback(L, obj2gco(h), val);
return;