| Index: dart/pkg/serialization/lib/src/serialization_rule.dart
|
| diff --git a/dart/pkg/serialization/lib/src/serialization_rule.dart b/dart/pkg/serialization/lib/src/serialization_rule.dart
|
| index 97af0e8bb359c25412ce9f054b33842d5a13050d..49e42ae7885db2724f4bb509a7f85c5a81af7a65 100644
|
| --- a/dart/pkg/serialization/lib/src/serialization_rule.dart
|
| +++ b/dart/pkg/serialization/lib/src/serialization_rule.dart
|
| @@ -414,8 +414,8 @@ class MirrorRule extends NamedObjectRule {
|
| } else {
|
| var symbol = new Symbol(name);
|
| var typeSymbol = new Symbol(type);
|
| - var libMirror = currentMirrorSystem().findLibrary(symbol).firstWhere(
|
| - (lib) => lib.classes[typeSymbol] != null);
|
| + var libMirror = currentMirrorSystem().libraries.values.firstWhere(
|
| + (lib) => lib.simpleName == symbol && lib.classes[typeSymbol] != null);
|
| return libMirror.classes[typeSymbol];
|
| }
|
| }
|
|
|