From 127d03829aa5e96fe2d39c63d6d687ca0afb0f3c Mon Sep 17 00:00:00 2001 From: Paul Lancaster Date: Sun, 11 Oct 2020 20:14:32 +0100 Subject: [PATCH] Update boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs Co-authored-by: Iban Eguia --- .../parser/expression/primary/async_function_expression/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?;