summaryrefslogtreecommitdiff
path: root/src/ltm.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 17:44:41 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 17:44:41 +1000
commit28f53e175e1609fc5882b571a726c6761151b05d (patch)
tree4e7f681f30014af4213d6f0927d031e33ca4e4cb /src/ltm.js
parent698a10a3aaa3b5df0c22597e9b92a89b4f921632 (diff)
downloadfengari-28f53e175e1609fc5882b571a726c6761151b05d.tar.gz
fengari-28f53e175e1609fc5882b571a726c6761151b05d.tar.bz2
fengari-28f53e175e1609fc5882b571a726c6761151b05d.zip
src/ltm.js: All stack items should be non-shared TValues
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 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);