Index: pkg/serialization/lib/src/reader_writer.dart |
diff --git a/pkg/serialization/lib/src/reader_writer.dart b/pkg/serialization/lib/src/reader_writer.dart |
index b40196e87c4ab058ad8b40d9b9d4c742f036254e..920318555b2e00774d5aed8e74b81fb517f707e7 100644 |
--- a/pkg/serialization/lib/src/reader_writer.dart |
+++ b/pkg/serialization/lib/src/reader_writer.dart |
@@ -40,7 +40,7 @@ class Writer implements ReaderOrWriter { |
* but also serves to record which objects we have already seen. |
*/ |
final Map<dynamic, Reference> references = |
- new IdentityMap<Object, Reference>(); |
+ new HashMap<Object, Reference>(equals: identical); |
/** |
* The state of objects that need to be serialized is stored here. |