Index: sdk/lib/async/stream.dart |
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart |
index 48e70f15760f3c7097e935aa721b7359557a3013..d0f39fb0c50c10d6aee05fa419f6203ba46fb341 100644 |
--- a/sdk/lib/async/stream.dart |
+++ b/sdk/lib/async/stream.dart |
@@ -402,7 +402,7 @@ abstract class Stream<T> { |
try { |
buffer.write(element); |
} catch (e, s) { |
- _cancelAndError(subscription, result, _asyncError(e, s), s); |
+ _cancelAndError(subscription, result, e, s); |
} |
}, |
onError: (e) { |