diff --git a/deps/v8/include/v8-version.h b/deps/v8/include/v8-version.h index 4dcb3e573482a3..d6df3c2e934f6c 100644 --- a/deps/v8/include/v8-version.h +++ b/deps/v8/include/v8-version.h @@ -11,7 +11,7 @@ #define V8_MAJOR_VERSION 5 #define V8_MINOR_VERSION 1 #define V8_BUILD_NUMBER 281 -#define V8_PATCH_LEVEL 95 +#define V8_PATCH_LEVEL 96 // Use 1 for candidates and 0 otherwise. // (Boolean macro values are not supported by all preprocessors.) diff --git a/deps/v8/src/parsing/parser-base.h b/deps/v8/src/parsing/parser-base.h index 0eb19ceb83b13a..d4cc3994578f57 100644 --- a/deps/v8/src/parsing/parser-base.h +++ b/deps/v8/src/parsing/parser-base.h @@ -1400,11 +1400,14 @@ typename ParserBase::ExpressionT ParserBase::ParseExpression( // AssignmentExpression // Expression ',' AssignmentExpression - ExpressionClassifier binding_classifier(this); - ExpressionT result = - this->ParseAssignmentExpression(accept_IN, &binding_classifier, CHECK_OK); - classifier->Accumulate(&binding_classifier, - ExpressionClassifier::AllProductions); + ExpressionT result = this->EmptyExpression(); + { + ExpressionClassifier binding_classifier(this); + result = this->ParseAssignmentExpression(accept_IN, &binding_classifier, + CHECK_OK); + classifier->Accumulate(&binding_classifier, + ExpressionClassifier::AllProductions); + } bool is_simple_parameter_list = this->IsIdentifier(result); bool seen_rest = false; while (peek() == Token::COMMA) { diff --git a/deps/v8/test/mjsunit/harmony/regress/regress-crbug-621111.js b/deps/v8/test/mjsunit/harmony/regress/regress-crbug-621111.js new file mode 100644 index 00000000000000..58a0d5ce3fc30a --- /dev/null +++ b/deps/v8/test/mjsunit/harmony/regress/regress-crbug-621111.js @@ -0,0 +1,6 @@ +// Copyright 2016 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +(y = 1[1, [...[]]]) => 1; // will core dump, if not fixed +(y = 1[1, [...[]]]) => {}; // will core dump, if not fixed