Skip to content

Commit

Permalink
Update boa/src/syntax/parser/expression/primary/async_function_expres…
Browse files Browse the repository at this point in the history
…sion/mod.rs

Co-authored-by: Iban Eguia <razican@protonmail.ch>
  • Loading branch information
Paul Lancaster and Razican authored Oct 11, 2020
1 parent 5eeea0a commit 127d038
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ where
return Err(ParseError::AbruptEnd);
};

cursor.expect(Punctuator::OpenParen, "function expression")?;
cursor.expect(Punctuator::OpenParen, "async function expression")?;

let params = FormalParameters::new(!self.allow_yield.0, true).parse(cursor)?;

Expand Down

0 comments on commit 127d038

Please sign in to comment.