summaryrefslogtreecommitdiff
path: root/src/lmathlib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmathlib.js')
-rw-r--r--src/lmathlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lmathlib.js b/src/lmathlib.js
index 49a1abe..7d3a082 100644
--- a/src/lmathlib.js
+++ b/src/lmathlib.js
@@ -259,7 +259,7 @@ const luaopen_math = function(L) {
lauxlib.luaL_newlib(L, mathlib);
lua.lua_pushnumber(L, Math.PI);
lua.lua_setfield(L, -2, lua.to_luastring("pi", true));
- lua.lua_pushnumber(L, Number.MAX_VALUE);
+ lua.lua_pushnumber(L, Infinity);
lua.lua_setfield(L, -2, lua.to_luastring("huge", true));
lua.lua_pushinteger(L, llimit.MAX_INT);
lua.lua_setfield(L, -2, lua.to_luastring("maxinteger", true));