What’s wrong?
Luau’s script analysis has been incorrectly told that the assert
function only takes a single argument which is incorrect. The function has a second, optional argument which lets developers choose the message sent if the statement fails.
Where does this occur and how do you reproduce it?
This occurs in every game, place and script across the platform and is very simple to reproduce.
Expected behaviour
assert
should only be flagged for incorrect arguments if it has 0 or more than 2 arguments, not if it is 0 or more than 1 argument.