| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index f5cbefd14cd962aad117029ef3bdfe7441db9ba1..f38fc85087f93548662368e98b1bc4a7e40a63d2 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -2652,7 +2652,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
|
| bool use_temp_zone =
|
| (FLAG_lazy_inner_functions
|
| ? can_preparse
|
| - : (allow_lazy() &&
|
| + : (allow_lazy() && function_type == FunctionLiteral::kDeclaration &&
|
| eager_compile_hint == FunctionLiteral::kShouldLazyCompile)) &&
|
| !(FLAG_validate_asm && scope()->IsAsmModule());
|
| bool is_lazy_inner_function =
|
|
|