Skip to content

Commit

Permalink
Fix a couple of syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed Oct 20, 2020
1 parent 132aa87 commit 508a64b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions boa/src/syntax/parser/statement/iteration/for_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ where
match cursor.peek(0)? {
Some(tok) if tok.kind() == &TokenKind::Keyword(Keyword::In) => {
// TODO: for...in
return Err(
ParseError::unimplemented("for...in loops"),
cursor.position(),
);
return Err(ParseError::unimplemented(
"for...in loops",
tok.span().start(),
));
}
Some(tok) if tok.kind() == &TokenKind::Keyword(Keyword::Of) && init.is_some() => {
let _ = cursor.next();
Expand Down

0 comments on commit 508a64b

Please sign in to comment.