Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad committed Jul 4, 2022
1 parent 3ab82a0 commit 4977ab7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions boa_engine/src/syntax/parser/expression/unary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ where
cursor.next(interner)?.expect("! token vanished"); // Consume the token.
Ok(node::UnaryOp::new(UnaryOp::Not, self.parse(cursor, interner)?).into())
}
TokenKind::Keyword((Keyword::Await, true)) if self.allow_await.0 => Err(
ParseError::general("Keyword 'await' must not contain escaped characters", token_start),
),
TokenKind::Keyword((Keyword::Await, true)) if self.allow_await.0 => {
Err(ParseError::general(
"Keyword 'await' must not contain escaped characters",
token_start,
))
}
TokenKind::Keyword((Keyword::Await, false)) if self.allow_await.0 => {
Ok((AwaitExpression::new(self.allow_yield).parse(cursor, interner)?).into())
}
Expand Down

0 comments on commit 4977ab7

Please sign in to comment.