aboutsummaryrefslogtreecommitdiff
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 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: