Index: runtime/lib/mirrors_impl.dart |
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart |
index 85bbae8387d0bdcee6a7ab820692fef7ebdcf681..adcc8d50ab6a180d0fb62761573ecd61f3ad749e 100644 |
--- a/runtime/lib/mirrors_impl.dart |
+++ b/runtime/lib/mirrors_impl.dart |
@@ -469,6 +469,10 @@ class _LocalClosureMirrorImpl extends _LocalInstanceMirrorImpl |
throw new ArgumentError("Invalid symbol: ${name}"); |
} |
List tuple = _computeFindInContext(_reflectee, parts); |
+ if (tuple.length == 0) { |
+ throw new UnsupportedError( |
+ "ClosureMirror.findInContext not yet supported"); |
+ } |
if (tuple[0]) { |
return reflect(tuple[1]); |
} |