From 31da86c30b277f0516305eaa7fe1790af174b85a Mon Sep 17 00:00:00 2001 From: aaron <83140718+centau@users.noreply.github.com> Date: Sat, 20 Jul 2024 18:08:04 +0100 Subject: [PATCH] Allow `indexes()` and `values()` to return functions --- src/maps.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maps.luau b/src/maps.luau index e5fa332..23c1eb3 100644 --- a/src/maps.luau +++ b/src/maps.luau @@ -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