Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index 129ce0d3875021c2f8c3c8d33214dfc6e87bdfab..88f64725a456dbc85742987ddc583103ea4387a7 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -1820,7 +1820,6 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseObjectLiteral( |
typename Traits::Type::PropertyList properties = |
this->NewPropertyList(4, zone_); |
int number_of_boilerplate_properties = 0; |
- bool has_function = false; |
bool has_computed_names = false; |
ObjectLiteralChecker checker(this); |
@@ -1842,12 +1841,6 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseObjectLiteral( |
has_computed_names = true; |
} |
- // Mark top-level object literals that contain function literals and |
- // pretenure the literal so it can be added as a constant function |
- // property. (Parser only.) |
- this->CheckFunctionLiteralInsideTopLevelObjectLiteral(scope_, property, |
- &has_function); |
- |
// Count CONSTANT or COMPUTED properties to maintain the enumeration order. |
if (!has_computed_names && this->IsBoilerplateProperty(property)) { |
number_of_boilerplate_properties++; |
@@ -1873,7 +1866,6 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseObjectLiteral( |
return factory()->NewObjectLiteral(properties, |
literal_index, |
number_of_boilerplate_properties, |
- has_function, |
pos); |
} |