Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index 42ac368a00377e2d8620131cfb4de45037bd8e80..8d7c100001240b22c0a7b4d7825241dcee6cf28d 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -3080,7 +3080,7 @@ ParserBase<Impl>::ParseLeftHandSideExpression(bool* ok) { |
// Also the trailing parenthesis are a hint that the function will |
// be called immediately. If we happen to have parsed a preceding |
// function literal eagerly, we can also compile it eagerly. |
- if (result->IsFunctionLiteral() && mode() == PARSE_EAGERLY) { |
+ if (result->IsFunctionLiteral()) { |
result->AsFunctionLiteral()->SetShouldEagerCompile(); |
} |
} |
@@ -3410,7 +3410,7 @@ ParserBase<Impl>::ParseMemberExpressionContinuation(ExpressionT expression, |
pos = position(); |
} else { |
pos = peek_position(); |
- if (expression->IsFunctionLiteral() && mode() == PARSE_EAGERLY) { |
+ if (expression->IsFunctionLiteral()) { |
// If the tag function looks like an IIFE, set_parenthesized() to |
// force eager compilation. |
expression->AsFunctionLiteral()->SetShouldEagerCompile(); |