summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lvm.js')
-rw-r--r--src/lvm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lvm.js b/src/lvm.js
index e56374f..9748ab4 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -161,7 +161,8 @@ const luaV_execute = function(L) {
break;
}
case OCi.OP_GETUPVAL: {
- L.stack[ra] = cl.upvals[i.B].val(L);
+ let o = cl.upvals[i.B].val(L);
+ L.stack[ra] = new lobject.TValue(o.type, o.value);
break;
}
case OCi.OP_SETUPVAL: {