From e62115edc448a8146278c7d7895fb06576d45286 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 10 Dec 2017 02:36:03 +1100 Subject: src/lparser.js: Avoid empty blocks --- 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 a42b5cc..d183d25 100644 --- a/src/lparser.js +++ b/src/lparser.js @@ -1340,7 +1340,7 @@ const test_then_block = function(ls, escapelist) { lcode.luaK_goiffalse(ls.fs, v); /* will jump to label if condition is true */ enterblock(fs, bl, false); /* must enter block before 'goto' */ gotostat(ls, v.t); /* handle goto/break */ - while (testnext(ls, char[';'])) {} /* skip colons */ + while (testnext(ls, char[';'])); /* skip colons */ if (block_follow(ls, 0)) { /* 'goto' is the entire block? */ leaveblock(fs); return escapelist; /* and that is it */ -- cgit v1.2.3-70-g09d2