summaryrefslogtreecommitdiff
path: root/src/lparser.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-18 04:21:46 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-18 04:23:10 +0200
commit7191624414a0c2646b0ee319260b91c383027ead (patch)
tree5e0f794a46b57f43657cc901f9cb0615d6224acb /src/lparser.js
parent31cbed5d79e18f8375bcaa56c55d1bd7053b1297 (diff)
downloadfengari-7191624414a0c2646b0ee319260b91c383027ead.tar.gz
fengari-7191624414a0c2646b0ee319260b91c383027ead.tar.bz2
fengari-7191624414a0c2646b0ee319260b91c383027ead.zip
test_then_block should return escapelist
closes #59
Diffstat (limited to 'src/lparser.js')
-rw-r--r--src/lparser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lparser.js b/src/lparser.js
index 215a566..f4947d5 100644
--- a/src/lparser.js
+++ b/src/lparser.js
@@ -1337,7 +1337,7 @@ const test_then_block = function(ls, escapelist) {
skipnoopstat(ls); /* skip other no-op statements */
if (block_follow(ls, 0)) { /* 'goto' is the entire block? */
leaveblock(fs);
- return; /* and that is it */
+ return escapelist; /* and that is it */
} else /* must skip over 'then' part if condition is false */
jf = lcode.luaK_jump(fs);
} else { /* regular case (not goto/break) */