| Index: compiler/java/com/google/dart/compiler/DartCompiler.java
|
| diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| index 9e1995da296ca039a928554a55d5c3a9f790d2c1..98493b2062ab7ea961c5cd2204cc28969dc9cdf1 100644
|
| --- a/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| +++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| @@ -1380,7 +1380,11 @@ public class DartCompiler {
|
| }
|
|
|
| public static LibraryUnit getCoreLib(LibraryUnit libraryUnit) {
|
| - return findLibrary(libraryUnit, "dart:core", new HashSet<LibraryElement>());
|
| + LibraryUnit coreLib = findLibrary(libraryUnit, "dart.core", new HashSet<LibraryElement>());
|
| + if (coreLib == null) {
|
| + coreLib = findLibrary(libraryUnit, "dart:core", new HashSet<LibraryElement>());
|
| + }
|
| + return coreLib;
|
| }
|
|
|
| private static void showVersion(CompilerOptions options) {
|
|
|