This PR fixes several implementation issues in numeric.lua and runtime.lua and migrates math.min and math.max to runtime.lua to account for luau discrepancy (math.min(0, NaN) and math.max(0, NaN) return 0 instead of NaN)
This allows the f64.wast test to pass along with three others (33 passing tests -> 37 including f64.wast)
This PR fixes several implementation issues in
numeric.lua
andruntime.lua
and migratesmath.min
andmath.max
toruntime.lua
to account for luau discrepancy (math.min(0, NaN)
andmath.max(0, NaN)
return 0 instead ofNaN
)This allows the
f64.wast
test to pass along with three others (33
passing tests ->37
includingf64.wast
)