diff --git a/boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs b/boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs index bf63eec03a7..f67796e700e 100644 --- a/boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs +++ b/boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs @@ -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)?;