Skip to content

Commit

Permalink
Update boa/src/syntax/parser/statement/declaration/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Halid Odat <halidodat@gmail.com>
  • Loading branch information
Paul Lancaster and HalidOdat authored Oct 11, 2020
1 parent 4c0c123 commit 46b2917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/syntax/parser/statement/declaration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ where
let tok = cursor.peek(0)?.ok_or(ParseError::AbruptEnd)?;

match tok.kind() {
TokenKind::Keyword(Keyword::Function) | TokenKind::Keyword(Keyword::Async) => {
TokenKind::Keyword(Keyword::Function | Keyword::Async) => {
HoistableDeclaration::new(self.allow_yield, self.allow_await, false).parse(cursor)
}
TokenKind::Keyword(Keyword::Const) | TokenKind::Keyword(Keyword::Let) => {
Expand Down

0 comments on commit 46b2917

Please sign in to comment.