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

Unified Diff: lib/html/src/dart2js_Conversions.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/Serialization.dart ('k') | lib/html/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/dart2js_Conversions.dart
diff --git a/lib/html/src/dart2js_Conversions.dart b/lib/html/src/dart2js_Conversions.dart
index 71aff9dd2bf83dccf3469440994ed331c69553c9..5ce880697f8c52c2fc2d5615e10af7b9ac195fec 100644
--- a/lib/html/src/dart2js_Conversions.dart
+++ b/lib/html/src/dart2js_Conversions.dart
@@ -199,7 +199,7 @@ _convertDartToNative_PrepareForStructuredClone(value) {
int findSlot(value) {
int length = values.length;
for (int i = 0; i < length; i++) {
- if (values[i] === value) return i;
+ if (identical(values[i], value)) return i;
}
values.add(value);
copies.add(null);
@@ -298,7 +298,7 @@ _convertDartToNative_PrepareForStructuredClone(value) {
for ( ; i < length; i++) {
var element = e[i];
var elementCopy = walk(element);
- if (elementCopy !== element) {
+ if (!identical(elementCopy, element)) {
copy = readSlot(slot); // Cyclic reference may have created it.
if (true == copy) {
copy = JS('List', 'new Array(#)', length);
@@ -364,7 +364,7 @@ _convertNativeToDart_AcceptStructuredClone(object, {mustCopy = false}) {
int findSlot(value) {
int length = values.length;
for (int i = 0; i < length; i++) {
- if (values[i] === value) return i;
+ if (identical(values[i], value)) return i;
}
values.add(value);
copies.add(null);
« no previous file with comments | « lib/html/src/Serialization.dart ('k') | lib/html/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698