summaryrefslogtreecommitdiff
path: root/src/ltm.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltm.js')
-rw-r--r--src/ltm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltm.js b/src/ltm.js
index 3647308..9011273 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -75,7 +75,7 @@ const luaT_objtypename = function(L, o) {
(o.ttisfulluserdata() && (mt = o.value.metatable) !== null)) {
let name = ltable.luaH_getstr(mt, defs.to_luastring('__name', true));
if (name.ttisstring())
- return name.value;
+ return name.svalue();
}
return ttypename(o.ttnov());
};