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 8687eb0..c94d8f1 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -70,7 +70,7 @@ const luaT_init = function(L) {
const luaT_objtypename = function(L, o) {
let mt;
if ((o.ttistable() && (mt = o.metatable) !== null) ||
- (o.ttisfulluserdata() && (mt = o.metatable) !== null)) {
+ (o.ttisfulluserdata() && (mt = o.value.metatable) !== null)) {
let name = lobject.table_index(mt, defs.to_luastring('__name', true));
if (name.ttisstring())
return name.value;