Allow indexes() and values() to return functions

This commit is contained in:
aaron 2024-07-20 18:08:04 +01:00
parent 2dc2814d76
commit 31da86c30b

View file

@ -21,7 +21,7 @@ local function check_primitives(t: {})
if not flags.strict then return end if not flags.strict then return end
for _, v in next, t do for _, v in next, t do
if type(v) == "table" or type(v) == "userdata" then continue end if type(v) == "table" or type(v) == "userdata" or type(v) == "function" then continue end
throw("table source map cannot return primitives") throw("table source map cannot return primitives")
end end
end end