Direct `nan == x` comparions return true when both nan and x are constant expressions in Luau

  1. Open up the command bar in Roblox Studio
  2. Type print(0 / 0 == 1)
  3. Observe the true result, when nan == x should always fail

This DOES NOT happen inside server/local scripts, as expected. With the new VM enabled, this happens in scripts and local scripts too.

Interestingly enough, if you store either into a value before hand, it does work as expected.

image
image

This seems to happen in the command bar regardless of whether I have the new VM enabled or not.

4 Likes

Just to confirm, this is only in Studio on Windows? Presumably doesn’t happen on live servers?

I don’t know, I don’t have a Mac. I can check later though if it works on a live server.

This doesn’t happen in live servers. The game does not have any beta features enabled.
image

1 Like

Ok thanks. This should be fixed by itself in a few weeks.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.