From 7191624414a0c2646b0ee319260b91c383027ead Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 18 May 2017 04:21:46 +0200 Subject: test_then_block should return escapelist closes #59 --- src/lparser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) */ -- cgit v1.2.3-70-g09d2