aboutsummaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldo.js')
-rw-r--r--src/ldo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldo.js b/src/ldo.js
index d236968..5fa51db 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -270,7 +270,7 @@ const tryfuncTM = function(L, off, func) {
for (let p = L.top; p > off; p--)
lobject.setobjs2s(L, p, p-1);
L.top++; /* slot ensured by caller */
- L.stack[off] = new lobject.TValue(tm.type, tm.value); /* tag method is the new function to be called */
+ lobject.setobj2s(L, off, tm); /* tag method is the new function to be called */
};
/*