Skip to content

Commit

Permalink
Allow indexes() and values() to return functions
Browse files Browse the repository at this point in the history
  • Loading branch information
centau committed Jul 20, 2024
1 parent 2dc2814 commit 31da86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maps.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31da86c

Please sign in to comment.