math.pow compat in Lua 5.3 (#1992).

This commit is contained in:
Florian Nücke 2016-07-30 09:38:00 +02:00
parent b503b947e4
commit 97b1313531

View File

@ -857,7 +857,9 @@ sandbox = {
min = math.min, min = math.min,
modf = math.modf, modf = math.modf,
pi = math.pi, pi = math.pi,
pow = math.pow, pow = math.pow or function(a, b) -- Deprecated in Lua 5.3
return a^b
end,
rad = math.rad, rad = math.rad,
random = function(...) random = function(...)
return spcall(math.random, ...) return spcall(math.random, ...)