| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 3dca827c92738d398bb2dd2639d81a19ca082f34..5f5389b8530d53e0ab3ee65f6bc222bd343057af 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -1035,14 +1035,17 @@ PreParser::Expression PreParser::ParseFunctionLiteral(
|
| ExpressionClassifier formals_classifier;
|
|
|
| bool has_rest = false;
|
| + bool hasParameterExpressions = false;
|
| + PreParserExpressionList initializers = NewExpressionList(0, zone());
|
| Expect(Token::LPAREN, CHECK_OK);
|
| int start_position = scanner()->location().beg_pos;
|
| function_scope->set_start_position(start_position);
|
| int num_parameters;
|
| {
|
| DuplicateFinder duplicate_finder(scanner()->unicode_cache());
|
| - num_parameters = ParseFormalParameterList(&duplicate_finder, &has_rest,
|
| - &formals_classifier, CHECK_OK);
|
| + num_parameters = ParseFormalParameterList(
|
| + &duplicate_finder, initializers, &hasParameterExpressions, &has_rest,
|
| + &formals_classifier, CHECK_OK);
|
| }
|
| Expect(Token::RPAREN, CHECK_OK);
|
| int formals_end_position = scanner()->location().end_pos;
|
|
|