Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 4af7fca7b7160293229d8d8b9c47feb7526a28fc..cca31a9bc7820d8bf23887f93d29a6669c24c134 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -591,7 +591,8 @@ PreParser::Statement PreParser::ParseVariableDeclarations( |
} |
} |
- is_pattern = pattern.IsObjectLiteral() || pattern.IsArrayLiteral(); |
+ is_pattern = (pattern.IsObjectLiteral() || pattern.IsArrayLiteral()) && |
+ !pattern.is_parenthesized(); |
bool is_for_iteration_variable = |
var_context == kForStatement && |