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

Unified Diff: sdk/lib/async/stream_controller.dart

Issue 19775015: Fixed bug in _ControllerStream.operator==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months 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
Index: sdk/lib/async/stream_controller.dart
diff --git a/sdk/lib/async/stream_controller.dart b/sdk/lib/async/stream_controller.dart
index e0ba58ab2ff33b7fcbba56491d5f19bbb9dbd5aa..5b3d760d85d688f2e67694eb4a436512b5047c5e 100644
--- a/sdk/lib/async/stream_controller.dart
+++ b/sdk/lib/async/stream_controller.dart
@@ -602,9 +602,10 @@ class _ControllerStream<T> extends _StreamImpl<T> {
int get hashCode => _controller.hashCode ^ 0x35323532;
bool operator==(Object other) {
+ if (identical(this, other)) return true;
if (other is! _ControllerStream) return false;
_ControllerStream otherStream = other;
- return identical(otherStream._controller, this);
+ return identical(otherStream._controller, this._controller);
}
}

Powered by Google App Engine
This is Rietveld 408576698