Luau Script Analysis - Incorrect linting

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.

4 Likes

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

7 Likes

I believe the problem has been fixed. Please let us know if you still experience the same issue.

2 Likes

If this issue is still occurring, please create a new topic for us to look into.