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

Unified Diff: sdk/lib/io/file_impl.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 | « sdk/lib/io/chunked_stream.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index 05126a8bbf09f38f7a94fb3a0db3d2f737605cf5..63c161b3138389ac7edf097929b35d07372d2913 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -249,10 +249,10 @@ class _FileOutputStream extends _BaseOutputStream implements OutputStream {
void _processPendingOperations() {
_pendingOperations.forEach((buffer) {
if (buffer is _PendingOperation) {
- if (buffer === _PendingOperation.CLOSE) {
+ if (identical(buffer, _PendingOperation.CLOSE)) {
close();
} else {
- assert(buffer === _PendingOperation.FLUSH);
+ assert(identical(buffer, _PendingOperation.FLUSH));
flush();
}
} else {
« no previous file with comments | « sdk/lib/io/chunked_stream.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698