summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index 0672c14..3851ee7 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -333,7 +333,7 @@ const interror = function(L, arg) {
};
const luaL_checknumber = function(L, arg) {
- let d = lua.lua_tonumber(L, arg);
+ let d = lua.lua_tonumberx(L, arg);
if (d === false)
tag_error(L, arg, lua.LUA_TNUMBER);
return d;