| Index: runtime/vm/object.h
|
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h
|
| index eccf39fcdfcf2a37a690e0aa1511873a78c1edfe..bb8d0d2659ce9e424f8bec060a620515efc82c36 100644
|
| --- a/runtime/vm/object.h
|
| +++ b/runtime/vm/object.h
|
| @@ -1886,7 +1886,9 @@ class Function : public Object {
|
| // Returns true if this function represents a (possibly implicit) closure
|
| // function.
|
| bool IsClosureFunction() const {
|
| - return kind() == RawFunction::kClosureFunction;
|
| + return (kind() == RawFunction::kClosureFunction) ||
|
| + (kind() == RawFunction::kGetFieldClosure) ||
|
| + (kind() == RawFunction::kSetFieldClosure);
|
| }
|
|
|
| // Returns true if this function represents an implicit closure function.
|
|
|