diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-27 09:31:32 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-27 09:31:32 +0200 |
commit | 3984ff6ea092325bcbc8e4b8593e73cce084586a (patch) | |
tree | 7eae07e5a7ed098a11651a27277cf8d96ff912e4 /src/lapi.js | |
parent | 3e150cbf82243134db25b71a7d90e2a31f8f04e7 (diff) | |
download | fengari-3984ff6ea092325bcbc8e4b8593e73cce084586a.tar.gz fengari-3984ff6ea092325bcbc8e4b8593e73cce084586a.tar.bz2 fengari-3984ff6ea092325bcbc8e4b8593e73cce084586a.zip |
lua_rawlen: bad userdata len reference
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 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: |