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

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

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: sdk/lib/io/websocket_impl.dart
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart
index bd21220f69830e9179419dd6ce6a5421bf7d9652..f027c8cf6a2d9126a42927ddeb835c38409794dd 100644
--- a/sdk/lib/io/websocket_impl.dart
+++ b/sdk/lib/io/websocket_impl.dart
@@ -385,7 +385,7 @@ class _WebSocketTransformerImpl implements WebSocketTransformer {
response.contentLength = 0;
response.close();
});
- return new Future.immediateError(
+ return new Future.error(
new WebSocketException("Invalid WebSocket upgrade request"));
}

Powered by Google App Engine
This is Rietveld 408576698