Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 74fc00b7e480dbaf493282135560adae8b5698b0..335b23ad6599e3bbb534ecf19e9a491e639814e6 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -2366,7 +2366,9 @@ void Parser::ParseVariableDeclarations(VariableDeclarationContext var_context, |
} |
} |
- bool is_pattern = pattern->IsObjectLiteral() || pattern->IsArrayLiteral(); |
+ bool is_pattern = |
+ (pattern->IsObjectLiteral() || pattern->IsArrayLiteral()) && |
+ !pattern->is_parenthesized(); |
Scanner::Location variable_loc = scanner()->location(); |
const AstRawString* single_name = |