| Index: tests/compiler/dart2js/serialization/members_test.dart
|
| diff --git a/tests/compiler/dart2js/serialization/members_test.dart b/tests/compiler/dart2js/serialization/members_test.dart
|
| index 22e08992450256dda4dd10acf8c78212036fff30..42b9c87e6d08b1433a666bd7e750344c3334f2b6 100644
|
| --- a/tests/compiler/dart2js/serialization/members_test.dart
|
| +++ b/tests/compiler/dart2js/serialization/members_test.dart
|
| @@ -87,12 +87,13 @@ void checkMembers(Compiler compiler1, ClassMemberMixin class1,
|
|
|
| Name convertName(Name name, Compiler compiler) {
|
| if (name.isPrivate) {
|
| - LibraryElement library =
|
| - compiler.libraryLoader.lookupLibrary(name.library.canonicalUri);
|
| - if (!areElementsEquivalent(name.library, library)) {
|
| - throw 'Libraries ${name.library} and ${library} are not equivalent';
|
| + LibraryElement library1 = name.library;
|
| + LibraryElement library2 =
|
| + compiler.libraryLoader.lookupLibrary(library1.canonicalUri);
|
| + if (!areElementsEquivalent(library1, library2)) {
|
| + throw 'Libraries ${library1} and ${library2} are not equivalent';
|
| }
|
| - name = new Name(name.text, library, isSetter: name.isSetter);
|
| + name = new Name(name.text, library2, isSetter: name.isSetter);
|
| }
|
| return name;
|
| }
|
|
|