From 9a903fb5f63f71142045288e23aec7c628b93cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Tue, 6 Jun 2023 19:35:02 +0000 Subject: [PATCH] Correctly parse `yield import(..)` expressions (#3006) --- boa_parser/src/parser/expression/assignment/yield.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boa_parser/src/parser/expression/assignment/yield.rs b/boa_parser/src/parser/expression/assignment/yield.rs index dc25e3817b..56f8dffc7e 100644 --- a/boa_parser/src/parser/expression/assignment/yield.rs +++ b/boa_parser/src/parser/expression/assignment/yield.rs @@ -99,7 +99,8 @@ where | Keyword::Function | Keyword::Class | Keyword::Async - | Keyword::Super, + | Keyword::Super + | Keyword::Import, _, )) | TokenKind::BooleanLiteral(_)