diff options
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js index e813313..6b853ae 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -778,7 +778,7 @@ const lua_isinteger = function(L, idx) { }; const lua_isnumber = function(L, idx) { - return lvm.tonumber(L, idx); + return lvm.tonumber(index2addr(L, idx)) !== false; }; const lua_isstring = function(L, idx) { |