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

Unified Diff: runtime/lib/array.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/bin/socket_patch.dart ('k') | runtime/lib/array_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index aa1168f3c998bd9578a0fc619206f7d428825183..b88b66e1158c9bf16068300a8d5f93ef061e894f 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -89,7 +89,7 @@ class _ObjectArray<E> implements List<E> {
}
bool get isEmpty {
- return this.length === 0;
+ return this.length == 0;
}
void sort([Comparator<E> compare = Comparable.compare]) {
@@ -101,7 +101,7 @@ class _ObjectArray<E> implements List<E> {
}
int lastIndexOf(E element, [int start = null]) {
- if (start === null) start = length - 1;
+ if (start == null) start = length - 1;
return Arrays.lastIndexOf(this, element, start);
}
@@ -231,7 +231,7 @@ class _ImmutableArray<E> implements List<E> {
}
bool get isEmpty {
- return this.length === 0;
+ return this.length == 0;
}
void sort([Comparator<E> compare]) {
@@ -248,7 +248,7 @@ class _ImmutableArray<E> implements List<E> {
}
int lastIndexOf(E element, [int start = null]) {
- if (start === null) start = length - 1;
+ if (start == null) start = length - 1;
return Arrays.lastIndexOf(this, element, start);
}
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/lib/array_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698