Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: sdk/lib/core/set.dart

Issue 11363081: Fix identical test in hash-set. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/set.dart
diff --git a/sdk/lib/core/set.dart b/sdk/lib/core/set.dart
index b55ce76ce42014a43a02d7ca34a7099a1e295c35..7c1f2a748ce1b0790c3f7e99751b60b6fabcf33c 100644
--- a/sdk/lib/core/set.dart
+++ b/sdk/lib/core/set.dart
@@ -209,7 +209,7 @@ class _HashSetIterator<E> implements Iterator<E> {
bool get hasNext {
if (_nextValidIndex >= _entries.length) return false;
- if (_entries[_nextValidIndex] == _HashMapImpl._DELETED_KEY) {
+ if (identical(_entries[_nextValidIndex], _HashMapImpl._DELETED_KEY)) {
// This happens in case the set was modified in the meantime.
// A modification on the set may make this iterator misbehave,
// but we should never return the sentinel.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698