mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibJS: break or continue with nonexistent label is a syntax error
This commit is contained in:
committed by
Andreas Kling
parent
67f2301150
commit
e8da5f99b1
@@ -2,8 +2,7 @@ test("'break' syntax errors", () => {
|
||||
expect("break").not.toEval();
|
||||
expect("break label").not.toEval();
|
||||
expect("{ break }").not.toEval();
|
||||
// FIXME: Parser does not throw error on nonexistent label
|
||||
// expect("{ break label }.not.toEval();
|
||||
expect("{ break label }").not.toEval();
|
||||
expect("label: { break label }").toEval();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user