| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index f122d9aa5e4b57ff1459cfa48e060c666bd407ff..d3c607f5bce29ef037db653ccaeb52d2a862be17 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -2535,6 +2535,10 @@ void Parser::ParseVariableDeclarations(VariableDeclarationContext var_context,
|
| if (!*ok) return;
|
| ValidateBindingPattern(&pattern_classifier, ok);
|
| if (!*ok) return;
|
| + if (IsLexicalVariableMode(parsing_result->descriptor.mode)) {
|
| + ValidateLetPattern(&pattern_classifier, ok);
|
| + if (!*ok) return;
|
| + }
|
| if (!allow_harmony_destructuring() && !pattern->IsVariableProxy()) {
|
| ReportUnexpectedToken(next);
|
| *ok = false;
|
|
|