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

Unified Diff: pkg/http/lib/browser_client.dart

Issue 263313003: Fix an analyzer error in pkg/http. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « pkg/http/CHANGELOG.md ('k') | pkg/http/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/browser_client.dart
diff --git a/pkg/http/lib/browser_client.dart b/pkg/http/lib/browser_client.dart
index 957784ba3dcf15bcea659efbe5a1a179e87a1e26..911c8427f520573909bf86a095ae808b1331fb4f 100644
--- a/pkg/http/lib/browser_client.dart
+++ b/pkg/http/lib/browser_client.dart
@@ -6,7 +6,6 @@ library http.browser_client;
import 'dart:async';
import 'dart:html';
-import 'dart:typed_data';
import 'package:stack_trace/stack_trace.dart';
@@ -66,7 +65,7 @@ class BrowserClient extends BaseClient {
});
reader.onError.first.then((error) {
- completer.complete(
+ completer.completeError(
Bob Nystrom 2014/05/05 19:59:34 Oof. Oops.
nweiz 2014/05/05 20:00:14 Luckily I don't think this code path can actually
new ClientException(error.toString(), request.url),
new Chain.current());
});
« no previous file with comments | « pkg/http/CHANGELOG.md ('k') | pkg/http/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698