| Index: runtime/vm/object.cc
|
| ===================================================================
|
| --- runtime/vm/object.cc (revision 9956)
|
| +++ runtime/vm/object.cc (working copy)
|
| @@ -3793,7 +3793,9 @@
|
| return 2; // Instance, phase.
|
| }
|
| }
|
| - if (!is_static()) {
|
| + if (!is_static() && (kind() != RawFunction::kClosureFunction)) {
|
| + // Closure functions defined inside instance (i.e. non-static) functions are
|
| + // marked as non-static, but they do not have a receiver.
|
| return 1; // Receiver.
|
| }
|
| return 0; // No implicit parameters.
|
|
|