| Index: compiler/java/com/google/dart/compiler/DartCompiler.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 4840)
|
| +++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
|
| @@ -1149,6 +1149,9 @@
|
| return null;
|
| }
|
| seen.add(libraryUnit.getElement());
|
| + if (uri.equals(libraryUnit.getName())) {
|
| + return libraryUnit;
|
| + }
|
| for (LibraryNode src : libraryUnit.getSourcePaths()) {
|
| if (src.getText().equals(uri)) {
|
| return libraryUnit;
|
| @@ -1164,6 +1167,6 @@
|
| }
|
|
|
| public static LibraryUnit getCoreLib(LibraryUnit libraryUnit) {
|
| - return findLibrary(libraryUnit, "corelib.dart", new HashSet<LibraryElement>());
|
| + return findLibrary(libraryUnit, "dart:core", new HashSet<LibraryElement>());
|
| }
|
| }
|
|
|