| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 348c6b61ab2f4b3da1de8ff7f077f61f52ce98b8..be1000c993e88352344713c34074413f527d1bf2 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -1032,18 +1032,15 @@ PreParser::Expression PreParser::ParseFunctionLiteral(
|
| PreParserFactory factory(NULL);
|
| FunctionState function_state(&function_state_, &scope_, function_scope, kind,
|
| &factory);
|
| - ExpressionClassifier formals_classifier;
|
| + DuplicateFinder duplicate_finder(scanner()->unicode_cache());
|
| + ExpressionClassifier formals_classifier(&duplicate_finder);
|
|
|
| bool has_rest = false;
|
| 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);
|
| - }
|
| + int num_parameters = ParseFormalParameterList(nullptr, &has_rest,
|
| + &formals_classifier, CHECK_OK);
|
| Expect(Token::RPAREN, CHECK_OK);
|
| int formals_end_position = scanner()->location().end_pos;
|
|
|
|
|