summaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 07:33:40 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 08:17:14 +0100
commit2cc93b924a21030fcd6f5dc96f287bbf13f987f4 (patch)
treea831301ac901f51e75e2e9f71d822b8ad49a3212 /src/ldo.js
parent5f5ba74ace8a956ae48a9f0b182a157052c2546e (diff)
downloadfengari-2cc93b924a21030fcd6f5dc96f287bbf13f987f4.tar.gz
fengari-2cc93b924a21030fcd6f5dc96f287bbf13f987f4.tar.bz2
fengari-2cc93b924a21030fcd6f5dc96f287bbf13f987f4.zip
string.gmatch
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 7df4c62..a9f442a 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -143,7 +143,7 @@ const moveresults = function(L, firstResult, res, nres, wanted) {
break;
case 1: {
if (nres === 0)
- firstResult = nil;
+ L.stack[firstResult] = nil;
L.stack[res] = L.stack[firstResult];
break;
}