Chromium Code Reviews| Index: sdk/lib/async/stream.dart |
| diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart |
| index 6672f475a9373b631318cea00d8d35dc2cd5c100..251b9ef74b9c548f07f7c443ea623c700426c44c 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) { |