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

Unified Diff: lib/html/src/Serialization.dart

Issue 11235029: Get rid of ===/!===. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « lib/html/src/Measurement.dart ('k') | lib/html/src/dart2js_Conversions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/Serialization.dart
diff --git a/lib/html/src/Serialization.dart b/lib/html/src/Serialization.dart
index 8d9413cc64b33bcdeb757200cf460d4228a5fa50..6bbeef0e0c439ce266e4257bb39b56ee2682ee60 100644
--- a/lib/html/src/Serialization.dart
+++ b/lib/html/src/Serialization.dart
@@ -60,7 +60,7 @@ class _MessageTraverser {
}
static bool isPrimitive(x) {
- return (x === null) || (x is String) || (x is num) || (x is bool);
+ return (x == null) || (x is String) || (x is num) || (x is bool);
}
}
@@ -72,7 +72,7 @@ class _Copier extends _MessageTraverser {
List visitList(List list) {
List copy = _visited[list];
- if (copy !== null) return copy;
+ if (copy != null) return copy;
int len = list.length;
@@ -87,7 +87,7 @@ class _Copier extends _MessageTraverser {
Map visitMap(Map map) {
Map copy = _visited[map];
- if (copy !== null) return copy;
+ if (copy != null) return copy;
// TODO(floitsch): we loose the generic type of the map.
copy = new Map();
@@ -108,7 +108,7 @@ class _Serializer extends _MessageTraverser {
visitList(List list) {
int copyId = _visited[list];
- if (copyId !== null) return ['ref', copyId];
+ if (copyId != null) return ['ref', copyId];
int id = _nextFreeRefId++;
_visited[list] = id;
@@ -119,7 +119,7 @@ class _Serializer extends _MessageTraverser {
visitMap(Map map) {
int copyId = _visited[map];
- if (copyId !== null) return ['ref', copyId];
+ if (copyId != null) return ['ref', copyId];
int id = _nextFreeRefId++;
_visited[map] = id;
@@ -146,7 +146,7 @@ class _Deserializer {
_Deserializer();
static bool isPrimitive(x) {
- return (x === null) || (x is String) || (x is num) || (x is bool);
+ return (x == null) || (x is String) || (x is num) || (x is bool);
}
deserialize(x) {
@@ -171,7 +171,7 @@ class _Deserializer {
_deserializeRef(List x) {
int id = x[1];
var result = _deserialized[id];
- assert(result !== null);
+ assert(result != null);
return result;
}
« no previous file with comments | « lib/html/src/Measurement.dart ('k') | lib/html/src/dart2js_Conversions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698