Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index 6eddb55c2428e56ac20e461f5ce9d73b40523a23..9b2c6388c1626c4bbe975dde7a01794acfc716e4 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -275,6 +275,12 @@ ObjectLiteralProperty::ObjectLiteralProperty(AstValueFactory* ast_value_factory, |
} |
} |
+bool ObjectLiteralProperty::NeedsSetFunctionName() const { |
+ return is_computed_name_ && |
+ (value_->IsAnonymousFunctionDefinition() || |
+ (value_->IsFunctionLiteral() && |
+ IsConciseMethod(value_->AsFunctionLiteral()->kind()))); |
+} |
void ClassLiteral::AssignFeedbackVectorSlots(Isolate* isolate, |
FeedbackVectorSpec* spec, |