summaryrefslogtreecommitdiff
path: root/src/lparser.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-29 14:41:07 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-29 14:41:07 +1000
commitbc7396f76988347bb5870e8482d17ee33f808ad7 (patch)
tree4d261cfab8ec52c2ba9da55e474b6eaa12f45f16 /src/lparser.js
parentce0ef55aff5669abb53fdd1d61e7cf8389c2089b (diff)
downloadfengari-bc7396f76988347bb5870e8482d17ee33f808ad7.tar.gz
fengari-bc7396f76988347bb5870e8482d17ee33f808ad7.tar.bz2
fengari-bc7396f76988347bb5870e8482d17ee33f808ad7.zip
src/lparser.js: Fix https://www.lua.org/bugs.html#5.3.4-1
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 0079141..cea2ea3 100644
--- a/src/lparser.js
+++ b/src/lparser.js
@@ -1342,7 +1342,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 */
- skipnoopstat(ls); /* skip other no-op statements */
+ while (testnext(ls, char[';'])) {} /* skip colons */
if (block_follow(ls, 0)) { /* 'goto' is the entire block? */
leaveblock(fs);
return escapelist; /* and that is it */