Clarification on code flagged for safety review

IIRC Lua literals are reduced down in the compilation step? Now I’m not entirely sure about the Luau VM that ROBLOX employ’s but this is done in the vanilla 5.1.

http://lua-users.org/lists/lua-l/2019-10/msg00004.html

Notice how the dumped functions for a and b are both equal, however b and c are not equal to c. 1 + 1 from a appears to have been reduced to 2, therefore that is why they’re equal.

image

This is an important question though, will they read both my source and compiled code?

6 Likes