mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Allow indexes() and values() to return functions
This commit is contained in:
parent
2dc2814d76
commit
31da86c30b
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ local function check_primitives(t: {})
|
|||
if not flags.strict then return end
|
||||
|
||||
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")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue