summaryrefslogtreecommitdiff
path: root/src/lparser.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-10 02:36:03 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-10 02:36:37 +1100
commite62115edc448a8146278c7d7895fb06576d45286 (patch)
treee61f9ca18e6f919a98f10256d1926d05d911680c /src/lparser.js
parent47090f2b534cea83d7a041a04f60381a77dae5ef (diff)
downloadfengari-e62115edc448a8146278c7d7895fb06576d45286.tar.gz
fengari-e62115edc448a8146278c7d7895fb06576d45286.tar.bz2
fengari-e62115edc448a8146278c7d7895fb06576d45286.zip
src/lparser.js: Avoid empty blocks
Diffstat (limited to 'src/lparser.js')
-rw-r--r--src/lparser.js2
1 files changed, 1 insertions, 1 deletions
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 */