| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 8d180f06a643abb27dbc00ed45474ffc24974fa8..b67a349f8c0383b0449bc50c3bba6e1849f9908c 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -4196,9 +4196,8 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
|
| &expected_property_count, /*CHECK_OK*/ ok,
|
| maybe_bookmark);
|
|
|
| - if (formals.materialized_literals_count > 0) {
|
| - materialized_literal_count += formals.materialized_literals_count;
|
| - }
|
| + materialized_literal_count += formals.materialized_literals_count +
|
| + function_state.materialized_literal_count();
|
|
|
| if (bookmark.HasBeenReset()) {
|
| // Trigger eager (re-)parsing, just below this block.
|
|
|