| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 19ca0670d03c9f1c68bf57945109cca1912c67c0..df95bb7d0ecd4aa45530ba89ef939e11a0da72ed 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -985,9 +985,9 @@ FunctionLiteral* Parser::DoParseFunction(ParseInfo* info,
|
| AstFunctionLiteralIdReindexer reindexer(
|
| stack_limit_,
|
| (info->function_literal_id() - 1) - GetLastFunctionLiteralId());
|
| - for (const auto p : formals.params) {
|
| - if (p.pattern != nullptr) reindexer.Reindex(p.pattern);
|
| - if (p.initializer != nullptr) reindexer.Reindex(p.initializer);
|
| + for (auto p : formals.params) {
|
| + if (p->pattern != nullptr) reindexer.Reindex(p->pattern);
|
| + if (p->initializer != nullptr) reindexer.Reindex(p->initializer);
|
| }
|
| ResetFunctionLiteralId();
|
| SkipFunctionLiterals(info->function_literal_id() - 1);
|
|
|