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

Unified Diff: runtime/lib/expando_patch.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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 | « runtime/lib/double.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/expando_patch.dart
diff --git a/runtime/lib/expando_patch.dart b/runtime/lib/expando_patch.dart
index 06fb46b9ba15ac258e9a8cc237b7e6cc0a13ef5c..a218af63b7ac57578910afaec5ee06c6548a65bd 100644
--- a/runtime/lib/expando_patch.dart
+++ b/runtime/lib/expando_patch.dart
@@ -15,13 +15,13 @@ patch class Expando<T> {
result = _data[i].value;
break;
}
- if (key === null) {
+ if (key == null) {
doCompact = true;
_data[i] = null;
}
}
if (doCompact) {
- _data = _data.filter((e) => (e !== null));
+ _data = _data.filter((e) => (e != null));
}
return result;
}
@@ -35,12 +35,12 @@ patch class Expando<T> {
if (key === object) {
break;
}
- if (key === null) {
+ if (key == null) {
doCompact = true;
_data[i] = null;
}
}
- if (i !== _data.length && value === null) {
+ if (i !== _data.length && value == null) {
doCompact = true;
_data[i] = null;
} else if (i !== _data.length) {
@@ -49,12 +49,12 @@ patch class Expando<T> {
_data.add(new _WeakProperty(object, value));
}
if (doCompact) {
- _data = _data.filter((e) => (e !== null));
+ _data = _data.filter((e) => (e != null));
}
}
static _checkType(object) {
- if (object === null) {
+ if (object == null) {
throw new NullPointerException();
}
if (object is bool || object is num || object is String) {
« no previous file with comments | « runtime/lib/double.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698