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