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 { |