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

Unified Diff: runtime/lib/expando_patch.dart

Issue 11308305: More cleanups === => identical (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | sdk/lib/core/expect.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/expando_patch.dart
===================================================================
--- runtime/lib/expando_patch.dart (revision 15644)
+++ runtime/lib/expando_patch.dart (working copy)
@@ -11,7 +11,7 @@
var result = null;
for (int i = 0; i < _data.length; ++i) {
var key = _data[i].key;
- if (key === object) {
+ if (identical(key, object)) {
result = _data[i].value;
break;
}
@@ -32,7 +32,7 @@
int i = 0;
for (; i < _data.length; ++i) {
var key = _data[i].key;
- if (key === object) {
+ if (identical(key, object)) {
break;
}
if (key == null) {
« no previous file with comments | « no previous file | sdk/lib/core/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698