Chromium Code Reviews| Index: src/ast/ast.h |
| diff --git a/src/ast/ast.h b/src/ast/ast.h |
| index 3bc5690f033a764018c4c3b824526fe61bb8cb16..7e7ccabd58be7150a4885f7c0ec69db893ac581e 100644 |
| --- a/src/ast/ast.h |
| +++ b/src/ast/ast.h |
| @@ -1483,6 +1483,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; |