Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 8b059b1bea0e320c149c6c5426a837ebe9f55a3a..e4c30841edc144f301e20b1fc10db46a00ba7123 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -984,9 +984,8 @@ PreParser::Expression PreParser::ParseFunctionLiteral( |
// See Parser::ParseFunctionLiteral for more information about lazy parsing |
// and lazy compilation. |
- bool is_lazily_parsed = |
- (outer_is_script_scope && allow_lazy() && !parenthesized_function_); |
- parenthesized_function_ = false; |
+ bool is_lazily_parsed = (outer_is_script_scope && allow_lazy() && |
+ !function_state_->this_function_is_parenthesized()); |
Expect(Token::LBRACE, CHECK_OK); |
if (is_lazily_parsed) { |