Boolean values are legitimate keys

This commit is contained in:
nnposter 2026-02-04 01:05:47 +00:00
parent cd77d5f8dd
commit 8ecfc735bf

View file

@ -41,7 +41,7 @@ tcopy_local = tcopy
function shallow_tcopy(t)
local k = next(t)
local out = {}
while k do
while k ~= nil do
out[k] = t[k]
k = next(t, k)
end