Skip to content

Commit

Permalink
Allow escaped yield and await in labelled statement (#3117)
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad authored Jul 9, 2023
1 parent e027932 commit 73af19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa_parser/src/parser/statement/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 73af19b

Please sign in to comment.