summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lapi.js2
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) {