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

Unified Diff: sdk/lib/io/secure_socket.dart

Issue 997503002: Add case to avoid warning when dart2js analyzes dart:io files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/secure_socket.dart
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
index 1dfd8c5330d3793e471522c6aed1883bcb75fd1a..6b36ebaeac00abb0e7637ecbe58b8e19fc8130a4 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -560,7 +560,8 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
}
// If we are upgrading a socket that is already closed for read,
// report an error as if we received READ_CLOSED during the handshake.
- if (_socket._socket.closedReadEventSent) {
+ dynamic s = _socket; // Cast to dynamic to avoid warning.
karlklose 2015/03/10 09:20:40 'var s' would be shorter. Is there a better type y
Søren Gjesse 2015/03/10 16:29:01 The type is _RawSocket, but that is currently defi
+ if (s._socket.closedReadEventSent) {
_eventDispatcher(RawSocketEvent.READ_CLOSED);
}
_socketSubscription
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698