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

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

Issue 25094002: Adapt streams for additional stackTrace argument. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove types in closures. Created 7 years, 2 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 | « sdk/lib/convert/chunked_conversion.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 4df878a9844a6c05bcca5ab1bc08dff04c9ce4ad..941f1da5ce21bec8f38e14412833f3054e96daa7 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -38,7 +38,7 @@ class _FileStream extends Stream<List<int>> {
}
StreamSubscription<List<int>> listen(void onData(List<int> event),
- {void onError(error),
+ {Function onError,
void onDone(),
bool cancelOnError}) {
return _controller.stream.listen(onData,
@@ -191,9 +191,9 @@ class _FileStreamConsumer extends StreamConsumer<List<int>> {
onDone: () {
completer.complete(_file);
},
- onError: (e) {
+ onError: (e, [StackTrace stackTrace]) {
openedFile.close();
- completer.completeError(e);
+ completer.completeError(e, stackTrace);
},
cancelOnError: true);
})
@@ -418,8 +418,8 @@ class _File extends FileSystemEntity implements File {
onDone: () {
completer.complete(builder.takeBytes());
},
- onError: (e) {
- completer.completeError(e);
+ onError: (e, StackTrace stackTrace) {
+ completer.completeError(e, stackTrace);
},
cancelOnError: true);
return completer.future;
« no previous file with comments | « sdk/lib/convert/chunked_conversion.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698