summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-27 09:31:32 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-27 09:31:32 +0200
commit3984ff6ea092325bcbc8e4b8593e73cce084586a (patch)
tree7eae07e5a7ed098a11651a27277cf8d96ff912e4
parent3e150cbf82243134db25b71a7d90e2a31f8f04e7 (diff)
downloadfengari-3984ff6ea092325bcbc8e4b8593e73cce084586a.tar.gz
fengari-3984ff6ea092325bcbc8e4b8593e73cce084586a.tar.bz2
fengari-3984ff6ea092325bcbc8e4b8593e73cce084586a.zip
lua_rawlen: bad userdata len reference
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 27d692a..63ed33e 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -695,7 +695,7 @@ const lua_rawlen = function(L, idx) {
case CT.LUA_TLNGSTR:
return o.vslen();
case CT.LUA_TUSERDATA:
- return o.len;
+ return o.value.len;
case CT.LUA_TTABLE:
return ltable.luaH_getn(o.value);
default: