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

Issue 925973002: Fix error handling in dart2js async-await (Closed)

Created:
5 years, 10 months ago by sigurdm
Modified:
5 years, 10 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix error handling in dart2js async-await BUG= dartbug.com/22372 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43812

Patch Set 1 #

Patch Set 2 : Added missing files (test and shared library). #

Total comments: 54

Patch Set 3 : Fix unittests #

Patch Set 4 : Addressed comments. Wrote more tests. Fixed a number of bugs #

Total comments: 23

Patch Set 5 : Support for throwing in sync* functions #

Patch Set 6 : Address review comments #

Total comments: 1

Patch Set 7 : Split test, so async* is tested seperatly. Update status-files for VM/dart2dart #

Patch Set 8 : Fixed unit-test #

Total comments: 20

Patch Set 9 : Address comments #

Patch Set 10 : Added missing test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1652 lines, -861 lines) Patch
M pkg/compiler/lib/src/js/rewrite_async.dart View 1 2 3 4 5 41 chunks +275 lines, -147 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 4 5 6 4 chunks +13 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 1 2 3 4 5 6 7 8 9 12 chunks +85 lines, -76 lines 0 comments Download
A + sdk/lib/_internal/compiler/js_lib/shared/async_await_error_codes.dart View 1 1 chunk +5 lines, -8 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/async_await_js_transform_test.dart View 1 2 3 4 5 6 7 14 chunks +747 lines, -611 lines 0 comments Download
M tests/compiler/dart2js/mock_libraries.dart View 1 2 2 chunks +1 line, -2 lines 0 comments Download
A tests/language/async_throw_in_catch_test.dart View 1 2 3 4 5 6 7 8 1 chunk +440 lines, -0 lines 0 comments Download
A tests/language/asyncstar_throw_in_catch_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +65 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/sync_generator3_test.dart View 1 2 3 4 1 chunk +6 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
sigurdm
5 years, 10 months ago (2015-02-13 13:49:03 UTC) #2
floitsch
LGTM with comments. https://codereview.chromium.org/925973002/diff/20001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/925973002/diff/20001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode13 pkg/compiler/lib/src/js/rewrite_async.dart:13: import 'package:_internal/compiler/js_lib/shared/async_await_error_codes.dart' I think we import ...
5 years, 10 months ago (2015-02-13 15:30:07 UTC) #3
floitsch
Still LGTM. https://codereview.chromium.org/925973002/diff/60001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/925973002/diff/60001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode46 pkg/compiler/lib/src/js/rewrite_async.dart:46: /// The label of the catch handler ...
5 years, 10 months ago (2015-02-16 18:26:36 UTC) #5
sigurdm
https://codereview.chromium.org/925973002/diff/20001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/925973002/diff/20001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode13 pkg/compiler/lib/src/js/rewrite_async.dart:13: import 'package:_internal/compiler/js_lib/shared/async_await_error_codes.dart' On 2015/02/13 15:30:06, floitsch wrote: > I ...
5 years, 10 months ago (2015-02-17 08:43:11 UTC) #7
sigurdm
PTAL on the test-changes. Thanks! https://codereview.chromium.org/925973002/diff/60001/pkg/compiler/lib/src/js/rewrite_async.dart File pkg/compiler/lib/src/js/rewrite_async.dart (right): https://codereview.chromium.org/925973002/diff/60001/pkg/compiler/lib/src/js/rewrite_async.dart#newcode46 pkg/compiler/lib/src/js/rewrite_async.dart:46: /// The label of ...
5 years, 10 months ago (2015-02-17 10:29:06 UTC) #8
floitsch
Still LGTM. https://codereview.chromium.org/925973002/diff/140001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/925973002/diff/140001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3708 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3708: // Rely on [_helper] to repeatedly return ...
5 years, 10 months ago (2015-02-17 12:40:59 UTC) #9
sigurdm
https://codereview.chromium.org/925973002/diff/140001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/925973002/diff/140001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3708 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3708: // Rely on [_helper] to repeatedly return `ITERATION_ENDED`. On ...
5 years, 10 months ago (2015-02-17 14:19:49 UTC) #11
sigurdm
5 years, 10 months ago (2015-02-17 14:52:08 UTC) #12
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as 43812 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698