| Index: pkg/compiler/lib/src/compiler.dart
|
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
|
| index 1766574ff5b4ebae5da04cc49ee60ef8e3526348..a346a95e52ba5c3a3a06951be6aecc17ffdaa899 100644
|
| --- a/pkg/compiler/lib/src/compiler.dart
|
| +++ b/pkg/compiler/lib/src/compiler.dart
|
| @@ -552,7 +552,9 @@ abstract class Compiler {
|
| }
|
| }
|
| }
|
| - resolveLibraryMetadata();
|
| + if (commonElements.mirrorsLibrary != null) {
|
| + resolveLibraryMetadata();
|
| + }
|
| reporter.log('Resolving...');
|
|
|
| processQueue(resolutionEnqueuer, mainFunction, libraryLoader.libraries,
|
| @@ -697,7 +699,7 @@ abstract class Compiler {
|
| // resolve metadata classes referenced only from metadata on library tags.
|
| // TODO(ahe): Figure out how to do this lazily.
|
| void resolveLibraryMetadata() {
|
| - if (commonElements.mirrorsLibrary == null) return;
|
| + assert(commonElements.mirrorsLibrary != null);
|
| for (LibraryElement library in libraryLoader.libraries) {
|
| if (library.metadata != null) {
|
| for (MetadataAnnotation metadata in library.metadata) {
|
|
|