mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Completed add static luau file for analyze
This commit is contained in:
parent
33524b6025
commit
ab94930421
1 changed files with 2 additions and 1 deletions
|
@ -394,8 +394,9 @@ end
|
||||||
|
|
||||||
-- #region instanceOf
|
-- #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
|
-- 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")
|
assert(typeof(class) == "table", "Received a non-table as the second argument for instanceof")
|
||||||
|
|
||||||
if typeof(tbl) ~= "table" then
|
if typeof(tbl) ~= "table" then
|
||||||
|
|
Loading…
Add table
Reference in a new issue