| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index d8c84260e2454f36415b6d02ae7de9257a7eee5e..050af1ced1869a374d30a98c9e275f32a0cd36a9 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -520,7 +520,7 @@ PreParser::Statement PreParser::ParseVariableDeclarations(
|
| ParsePrimaryExpression(&pattern_classifier, CHECK_OK);
|
| ValidateBindingPattern(&pattern_classifier, CHECK_OK);
|
|
|
| - if (!pattern.IsIdentifier()) {
|
| + if (!FLAG_harmony_destructuring && !pattern.IsIdentifier()) {
|
| ReportUnexpectedToken(next);
|
| *ok = false;
|
| return Statement::Default();
|
|
|