summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) */