Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index 3d9142d386a427f5448cb5678c5fec0a04b8cbce..201119dfafb2bace83d2147b86d7056aa34296f4 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -1477,6 +1477,10 @@ class ObjectLiteralProperty final : public ZoneObject { |
void set_receiver_type(Handle<Map> map) { receiver_type_ = map; } |
+ bool NeedsSetFunctionName() const { |
+ return is_computed_name_ && value_->IsAnonymousFunctionDefinition(); |
+ } |
+ |
protected: |
friend class AstNodeFactory; |