summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ltm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ltm.js b/src/ltm.js
index 95486e4..e075e56 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -116,7 +116,7 @@ const luaT_callTM = function(L, f, p1, p2, p3, hasres) {
L.top += 3;
if (!hasres) /* no result? 'p3' is third argument */
- L.stack[L.top++] = p3; /* 3rd argument */
+ L.stack[L.top++] = new lobject.TValue(p3.type, p3.value); /* 3rd argument */
if (L.ci.callstatus & lstate.CIST_LUA)
ldo.luaD_call(L, func, hasres);