Index: sdk/lib/core/set.dart |
diff --git a/sdk/lib/core/set.dart b/sdk/lib/core/set.dart |
index 7c1f2a748ce1b0790c3f7e99751b60b6fabcf33c..21788974fded65340e7711c59843a9a94c101b30 100644 |
--- a/sdk/lib/core/set.dart |
+++ b/sdk/lib/core/set.dart |
@@ -234,7 +234,7 @@ class _HashSetIterator<E> implements Iterator<E> { |
do { |
if (++_nextValidIndex >= length) break; |
entry = _entries[_nextValidIndex]; |
- } while ((entry === null) || (entry === deletedKey)); |
+ } while ((entry == null) || identical(entry, deletedKey)); |
} |
// The entries in the set. May contain null or the sentinel value. |