From 3984ff6ea092325bcbc8e4b8593e73cce084586a Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 27 May 2017 09:31:32 +0200 Subject: lua_rawlen: bad userdata len reference --- src/lapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3-70-g09d2