Index: runtime/lib/mirrors_patch.dart |
diff --git a/runtime/lib/mirrors_patch.dart b/runtime/lib/mirrors_patch.dart |
index 06eb5585a1462aec1945e47311b4d8dd5e72bca1..6f3c43609cc6847af7e59ba45b87cb7d66ac5202 100644 |
--- a/runtime/lib/mirrors_patch.dart |
+++ b/runtime/lib/mirrors_patch.dart |
@@ -2,7 +2,6 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import "dart:nativewrappers"; |
rmacnak
2013/11/20 00:27:46
We haven't needed this since the introduction of M
|
// TODO(ahe): Move _symbol_dev.Symbol to its own "private" library? |
import "dart:_collection-dev" as _symbol_dev; |
@@ -78,7 +77,7 @@ patch class MirrorSystem { |
} |
/* patch */ static Symbol getSymbol(String name, [LibraryMirror library]) { |
- if (library is! LibraryMirror || |
+ if ((library != null && library is! _LocalLibraryMirror) || |
ahe
2013/11/21 09:07:02
Why are you checking for is! _LocalLibraryMirror?
|
((name.length > 0) && (name[0] == '_') && (library == null))) { |
throw new ArgumentError(library); |
} |