Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index 6f46b2ac96edc859855764a523e5a9d2f506eb26..9ea328daf9fd32e3f1158adbc4338549c7a072bf 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -3941,7 +3941,8 @@ ParserBase<Impl>::ParseArrowFunctionLiteral( |
bool is_lazily_parsed = |
(mode() == PARSE_LAZILY && |
formal_parameters.scope |
- ->AllowsLazyParsingWithoutUnresolvedVariables()); |
+ ->AllowsLazyParsingWithoutUnresolvedVariables() && |
+ eager_compile_hint == FunctionLiteral::kShouldLazyCompile); |
// TODO(marja): consider lazy-parsing inner arrow functions too. is_this |
// handling in Scope::ResolveVariable needs to change. |
if (is_lazily_parsed) { |