summaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 15:53:14 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 15:58:55 +1000
commit1dc893efcd664df86606b571d4b6bbee5b5868ca (patch)
treefaac1dcfacdad1de1cc8fa71123fc994c4bc2c94 /src/ldo.js
parent4c8de564f08e122e011c5f5ecaa96bea595603ed (diff)
downloadfengari-1dc893efcd664df86606b571d4b6bbee5b5868ca.tar.gz
fengari-1dc893efcd664df86606b571d4b6bbee5b5868ca.tar.bz2
fengari-1dc893efcd664df86606b571d4b6bbee5b5868ca.zip
Need to copy to the stack if not coming from a stack
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 004c659..7c1f474 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -233,7 +233,7 @@ const tryfuncTM = function(L, off, func) {
for (let p = L.top; p > off; p--)
L.stack[p] = L.stack[p-1];
L.top++; /* slot ensured by caller */
- L.stack[off] = tm; /* tag method is the new function to be called */
+ L.stack[off] = new lobject.TValue(tm.type, tm.value); /* tag method is the new function to be called */
};
/*