mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Fix parsing of IfStatement, fixes #1829
This commit is contained in:
committed by
Andreas Kling
parent
3072f9fd82
commit
cebb619f8e
@@ -5,6 +5,25 @@ load("test-common.js");
|
||||
* If this file produces syntax errors, something is wrong.
|
||||
*/
|
||||
|
||||
function bar() {
|
||||
// https://github.com/SerenityOS/serenity/issues/1829
|
||||
if (1)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
||||
if (1)
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
if (1)
|
||||
return 1
|
||||
else
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
function foo() {
|
||||
for (var i = 0; i < 4; i++) {
|
||||
break // semicolon inserted here
|
||||
|
||||
Reference in New Issue
Block a user