From 73af19b2bd6e8947891506dd30e084c62b2afdd9 Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Sun, 9 Jul 2023 04:54:36 +0200 Subject: [PATCH] Allow escaped yield and await in labelled statement (#3117) --- boa_parser/src/parser/statement/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa_parser/src/parser/statement/mod.rs b/boa_parser/src/parser/statement/mod.rs index b791a95429..0e6fe17d5d 100644 --- a/boa_parser/src/parser/statement/mod.rs +++ b/boa_parser/src/parser/statement/mod.rs @@ -202,7 +202,7 @@ where Ok(ast::Statement::Empty) } TokenKind::IdentifierName(_) - | TokenKind::Keyword((Keyword::Await | Keyword::Yield, false)) => { + | TokenKind::Keyword((Keyword::Await | Keyword::Yield, _)) => { // Labelled Statement check cursor.set_goal(InputElement::Div); let tok = cursor.peek(1, interner)?;