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

Issue 25354003: Redo StreamTransformers so they work with Stack traces. (Closed)

Created:
7 years, 2 months ago by floitsch
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, nweiz, Bob Nystrom
Visibility:
Public.

Description

Redo StreamTransformers so they work with Stack traces. Since this involved a breaking change I cleaned up more of the StreamTransformer API. This CL also deprecates the getAttachedStackTrace method. R=ajohnsen@google.com, lrn@google.com, nweiz@google.com, rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=28562

Patch Set 1 #

Patch Set 2 : Fix standalone tests. #

Patch Set 3 : Fix most async tests. #

Patch Set 4 : Fix two more tests. #

Total comments: 17

Patch Set 5 : More tests. #

Patch Set 6 : Address comments. #

Patch Set 7 : Small fixes and tests. #

Total comments: 44

Patch Set 8 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1329 lines, -569 lines) Patch
M pkg/barback/test/stream_pool_test.dart View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M pkg/http_server/lib/src/http_body_impl.dart View 1 2 3 1 chunk +23 lines, -4 lines 0 comments Download
M pkg/utf/lib/utf_stream.dart View 1 2 3 4 5 6 7 3 chunks +50 lines, -11 lines 0 comments Download
M sdk/lib/_collection_dev/iterable.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart2js.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/async/async.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/async/async_error.dart View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M sdk/lib/async/async_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/async/stream.dart View 1 2 3 4 5 6 7 3 chunks +120 lines, -201 lines 0 comments Download
M sdk/lib/async/stream_impl.dart View 1 2 3 4 5 3 chunks +9 lines, -10 lines 0 comments Download
M sdk/lib/async/stream_pipe.dart View 1 2 3 4 5 1 chunk +0 lines, -61 lines 0 comments Download
A sdk/lib/async/stream_transformers.dart View 1 2 3 4 5 6 7 1 chunk +307 lines, -0 lines 0 comments Download
M sdk/lib/convert/chunked_conversion.dart View 3 chunks +16 lines, -79 lines 0 comments Download
M sdk/lib/convert/converter.dart View 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/io/http_impl.dart View 1 2 3 4 5 4 chunks +80 lines, -28 lines 0 comments Download
M sdk/lib/io/websocket_impl.dart View 1 2 3 4 5 6 7 17 chunks +75 lines, -37 lines 0 comments Download
M sdk/lib/utf/utf_stream.dart View 3 chunks +49 lines, -11 lines 0 comments Download
M tests/co19/co19-co19.status View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
M tests/lib/async/catch_errors16_test.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/async/catch_errors17_test.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/async/catch_errors23_test.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/async/catch_errors24_test.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/async/catch_errors26_test.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/async/catch_errors27_test.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/async/event_helper.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/lib/async/first_regression_test.dart View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M tests/lib/async/stream_controller_test.dart View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
D tests/lib/async/stream_event_transform_test.dart View 1 chunk +0 lines, -81 lines 0 comments Download
A tests/lib/async/stream_event_transformed_test.dart View 1 2 3 4 5 6 1 chunk +313 lines, -0 lines 0 comments Download
M tests/lib/async/stream_transform_test.dart View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
A tests/lib/async/stream_transformer_from_handlers_test.dart View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
A tests/lib/async/stream_transformer_test.dart View 1 2 3 4 5 6 1 chunk +85 lines, -0 lines 0 comments Download
M tests/standalone/io/web_socket_pipe_test.dart View 1 1 chunk +8 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
floitsch
Still WIP, but it would be great if you could start the review.
7 years, 2 months ago (2013-10-04 11:46:07 UTC) #1
floitsch
Fixed standalone tests.
7 years, 2 months ago (2013-10-04 12:19:00 UTC) #2
floitsch
@Anders: please have a look at the io libraries and tell me what you think.
7 years, 2 months ago (2013-10-04 12:19:38 UTC) #3
floitsch
Fixed most async tests. Remaining failing test: stream_transformer_test.
7 years, 2 months ago (2013-10-04 12:30:14 UTC) #4
Lasse Reichstein Nielsen
LGTM so fart. Examples would be great :) https://codereview.chromium.org/25354003/diff/12001/sdk/lib/_collection_dev/iterable.dart File sdk/lib/_collection_dev/iterable.dart (right): https://codereview.chromium.org/25354003/diff/12001/sdk/lib/_collection_dev/iterable.dart#newcode28 sdk/lib/_collection_dev/iterable.dart:28: // ...
7 years, 2 months ago (2013-10-04 14:35:53 UTC) #5
Anders Johnsen
IO LGTM.
7 years, 2 months ago (2013-10-04 15:02:07 UTC) #6
floitsch
@Lasse: PTAL. I have implemented everything I wanted. Looping in Bob and Nathan for the ...
7 years, 2 months ago (2013-10-05 18:47:39 UTC) #7
floitsch
Note: the current implementation triggers a bug in dart2js which makes lots of tests fail. ...
7 years, 2 months ago (2013-10-05 20:28:04 UTC) #8
Lasse Reichstein Nielsen
LGTM https://codereview.chromium.org/25354003/diff/28001/sdk/lib/async/stream.dart File sdk/lib/async/stream.dart (right): https://codereview.chromium.org/25354003/diff/28001/sdk/lib/async/stream.dart#newcode1078 sdk/lib/async/stream.dart:1078: * It is good practice to create transformers ...
7 years, 2 months ago (2013-10-07 11:46:59 UTC) #9
Lasse Reichstein Nielsen
LGTM
7 years, 2 months ago (2013-10-07 12:32:24 UTC) #10
nweiz
One change, otherwise pub/pkg changes lgtm. https://codereview.chromium.org/25354003/diff/28001/pkg/barback/test/stream_pool_test.dart File pkg/barback/test/stream_pool_test.dart (right): https://codereview.chromium.org/25354003/diff/28001/pkg/barback/test/stream_pool_test.dart#newcode55 pkg/barback/test/stream_pool_test.dart:55: handleError: (e, st, ...
7 years, 2 months ago (2013-10-07 20:29:19 UTC) #11
Bob Nystrom
A couple of name changes, then pub stuff LGTM. https://codereview.chromium.org/25354003/diff/28001/pkg/barback/test/stream_pool_test.dart File pkg/barback/test/stream_pool_test.dart (right): https://codereview.chromium.org/25354003/diff/28001/pkg/barback/test/stream_pool_test.dart#newcode55 pkg/barback/test/stream_pool_test.dart:55: ...
7 years, 2 months ago (2013-10-07 20:29:53 UTC) #12
Lasse Reichstein Nielsen
https://codereview.chromium.org/25354003/diff/28001/sdk/lib/utf/utf_stream.dart File sdk/lib/utf/utf_stream.dart (right): https://codereview.chromium.org/25354003/diff/28001/sdk/lib/utf/utf_stream.dart#newcode173 sdk/lib/utf/utf_stream.dart:173: implements StreamTransformer<String, List<int>>, EventSink<String> { This should really be ...
7 years, 2 months ago (2013-10-08 08:10:55 UTC) #13
floitsch
https://codereview.chromium.org/25354003/diff/28001/pkg/barback/test/stream_pool_test.dart File pkg/barback/test/stream_pool_test.dart (right): https://codereview.chromium.org/25354003/diff/28001/pkg/barback/test/stream_pool_test.dart#newcode55 pkg/barback/test/stream_pool_test.dart:55: handleError: (e, st, sink) => sink.add(["error", e]))).toList(); On 2013/10/07 ...
7 years, 2 months ago (2013-10-10 15:39:56 UTC) #14
floitsch
7 years, 2 months ago (2013-10-12 12:35:08 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 manually as r28562 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698