From ab94930421fb961c41e3b78e40651febbd6ad628 Mon Sep 17 00:00:00 2001 From: Allan Jeremy Date: Thu, 2 Jun 2022 15:16:22 +0300 Subject: [PATCH] Completed add static luau file for analyze --- bench/static_analysis/LuauPolyfillMap.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/static_analysis/LuauPolyfillMap.lua b/bench/static_analysis/LuauPolyfillMap.lua index 86722a8b..f0f91860 100644 --- a/bench/static_analysis/LuauPolyfillMap.lua +++ b/bench/static_analysis/LuauPolyfillMap.lua @@ -394,8 +394,9 @@ end -- #region instanceOf +-- ROBLOX note: Typed tbl as any to work with strict type analyze -- polyfill for https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof -function instanceOf(tbl, class) +function instanceOf(tbl: any, class) assert(typeof(class) == "table", "Received a non-table as the second argument for instanceof") if typeof(tbl) ~= "table" then