lua bugfix

This commit is contained in:
Cloud Wu
2017-08-28 16:06:05 +08:00
parent 9d74307836
commit 932ebfa0fd
2 changed files with 2 additions and 1 deletions

View File

@@ -1395,7 +1395,7 @@ 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 */
while (testnext(ls, ';')) {} /* skip colons */
while (testnext(ls, ';')) {} /* skip semicolons */
if (block_follow(ls, 0)) { /* 'goto' is the entire block? */
leaveblock(fs);
return; /* and that is it */