From ad36be1bd7169e9f683446630d4b0bb4acb91cff Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 20 Apr 2017 11:26:22 +0800 Subject: [PATCH] bugfix: http://lua-users.org/lists/lua-l/2017-04/msg00045.html --- 3rd/lua/lparser.c | 1 - 1 file changed, 1 deletion(-) diff --git a/3rd/lua/lparser.c b/3rd/lua/lparser.c index 83503a06..8ede1268 100644 --- a/3rd/lua/lparser.c +++ b/3rd/lua/lparser.c @@ -1395,7 +1395,6 @@ static void test_then_block (LexState *ls, int *escapelist) { luaK_goiffalse(ls->fs, &v); /* will jump to label if condition is true */ enterblock(fs, &bl, 0); /* must enter block before 'goto' */ gotostat(ls, v.t); /* handle goto/break */ - skipnoopstat(ls); /* skip other no-op statements */ if (block_follow(ls, 0)) { /* 'goto' is the entire block? */ leaveblock(fs); return; /* and that is it */