Index: runtime/lib/collection_patch.dart |
diff --git a/runtime/lib/collection_patch.dart b/runtime/lib/collection_patch.dart |
index 415982ca77d1f89b656cfe696495f4fa3cde9bd0..66efd3a44d2040f8e8e71aee51b10a4b78fa52be 100644 |
--- a/runtime/lib/collection_patch.dart |
+++ b/runtime/lib/collection_patch.dart |
@@ -94,7 +94,7 @@ patch class HashMap<K, V> { |
for (int offset = 0; offset < table.length; offset += entrySize) { |
Object entry = table[offset]; |
if (!_hashTable._isFree(entry)) { |
- K key = entry; |
+ K key = identical(entry, _NULL) ? null : entry; |
V value = _hashTable._value(offset); |
action(key, value); |
_hashTable._checkModification(modificationCount); |