REVERT: Change handling of nil value markers in template tables.

This commit is contained in:
Mike Pall
2025-03-10 02:56:07 +01:00
parent 4f2bb199fe
commit 84cb21ffaf
6 changed files with 25 additions and 24 deletions

View File

@@ -194,7 +194,6 @@ GCtab * LJ_FASTCALL lj_tab_dup(lua_State *L, const GCtab *kt)
Node *next = nextnode(kn);
/* Don't use copyTV here, since it asserts on a copy of a dead key. */
n->val = kn->val; n->key = kn->key;
if (tvistab(&n->val)) setnilV(&n->val); /* Replace nil value marker. */
setmref(n->next, next == NULL? next : (Node *)((char *)next + d));
}
}