From bc7396f76988347bb5870e8482d17ee33f808ad7 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 29 May 2017 14:41:07 +1000 Subject: src/lparser.js: Fix https://www.lua.org/bugs.html#5.3.4-1 --- src/lparser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3-70-g09d2