| Index: runtime/lib/mirrors.cc
|
| diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
|
| index dc6808b8b8974895958d52688cf6f22a8a88563c..9b7e9e6d593c31d3a5b02e8ba1036c685a7e5928 100644
|
| --- a/runtime/lib/mirrors.cc
|
| +++ b/runtime/lib/mirrors.cc
|
| @@ -1450,6 +1450,12 @@ DEFINE_NATIVE_ENTRY(ClosureMirror_find_in_context, 2) {
|
| GET_NON_NULL_NATIVE_ARGUMENT(Array, lookup_parts, arguments->NativeArgAt(1));
|
| ASSERT(lookup_parts.Length() >= 1 && lookup_parts.Length() <= 3);
|
|
|
| + if (!closure.IsClosure()) {
|
| + const Array& result_tuple = Array::Handle(Array::New(2));
|
| + result_tuple.SetAt(0, Bool::False());
|
| + return result_tuple.raw();
|
| + }
|
| +
|
| Function& function = Function::Handle();
|
| const bool callable = closure.IsCallable(&function, NULL);
|
| ASSERT(callable);
|
|
|