Without this change, math.maxinteger and math.mininteger would be accepted by Teal, but the generated Lua on PUC-Lua < 5.3 or LuaJIT without the compat module would not find it, resulting on a run-time error when attempting to use it.
The change makes Teal produce those two values, so they exist when compat is optional or required (they will not be provided by Teal when compat is off).
As discussed in #488
Without this change,
math.maxinteger
andmath.mininteger
would be accepted by Teal, but the generated Lua on PUC-Lua < 5.3 or LuaJIT without the compat module would not find it, resulting on a run-time error when attempting to use it.The change makes Teal produce those two values, so they exist when compat is optional or required (they will not be provided by Teal when compat is
off
).