File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
test/mjsunit/harmony/regress Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11
11
#define V8_MAJOR_VERSION 5
12
12
#define V8_MINOR_VERSION 1
13
13
#define V8_BUILD_NUMBER 281
14
- #define V8_PATCH_LEVEL 95
14
+ #define V8_PATCH_LEVEL 96
15
15
16
16
// Use 1 for candidates and 0 otherwise.
17
17
// (Boolean macro values are not supported by all preprocessors.)
Original file line number Diff line number Diff line change @@ -1400,11 +1400,14 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseExpression(
1400
1400
// AssignmentExpression
1401
1401
// Expression ',' AssignmentExpression
1402
1402
1403
- ExpressionClassifier binding_classifier (this );
1404
- ExpressionT result =
1405
- this ->ParseAssignmentExpression (accept_IN, &binding_classifier, CHECK_OK);
1406
- classifier->Accumulate (&binding_classifier,
1407
- ExpressionClassifier::AllProductions);
1403
+ ExpressionT result = this ->EmptyExpression ();
1404
+ {
1405
+ ExpressionClassifier binding_classifier (this );
1406
+ result = this ->ParseAssignmentExpression (accept_IN, &binding_classifier,
1407
+ CHECK_OK);
1408
+ classifier->Accumulate (&binding_classifier,
1409
+ ExpressionClassifier::AllProductions);
1410
+ }
1408
1411
bool is_simple_parameter_list = this ->IsIdentifier (result);
1409
1412
bool seen_rest = false ;
1410
1413
while (peek () == Token::COMMA) {
Original file line number Diff line number Diff line change
1
+ // Copyright 2016 the V8 project authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ ( y = 1 [ 1 , [ ...[ ] ] ] ) => 1 ; // will core dump, if not fixed
6
+ ( y = 1 [ 1 , [ ...[ ] ] ] ) => { } ; // will core dump, if not fixed
You can’t perform that action at this time.
0 commit comments