From 28f53e175e1609fc5882b571a726c6761151b05d Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 8 May 2017 17:44:41 +1000 Subject: src/ltm.js: All stack items should be non-shared TValues --- src/ltm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2