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

Issue 947433002: Asyncstar - exception thrown before yield or await would not get caught (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

Asyncstar - exception thrown before yield or await would not get caught BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43948

Patch Set 1 #

Total comments: 5

Patch Set 2 : Adress Review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -17 lines) Patch
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 1 2 chunks +7 lines, -5 lines 0 comments Download
M tests/language/asyncstar_throw_in_catch_test.dart View 1 3 chunks +78 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
sigurdm
5 years, 10 months ago (2015-02-20 09:20:51 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/947433002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/947433002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3736 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3736: _wrapJsFunctionForAsync(body, nit: the "(null)" drowns. maybe: Function wrapped ...
5 years, 10 months ago (2015-02-20 12:16:08 UTC) #3
sigurdm
Committed patchset #2 (id:20001) manually as 43948 (presubmit successful).
5 years, 10 months ago (2015-02-23 11:25:48 UTC) #5
sigurdm
https://codereview.chromium.org/947433002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/947433002/diff/1/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3736 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3736: _wrapJsFunctionForAsync(body, On 2015/02/20 12:16:08, floitsch wrote: > nit: the ...
5 years, 10 months ago (2015-02-23 12:33:50 UTC) #6
floitsch
5 years, 10 months ago (2015-02-23 13:15:13 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/947433002/diff/1/tests/language/asyncstar_thr...
File tests/language/asyncstar_throw_in_catch_test.dart (left):

https://codereview.chromium.org/947433002/diff/1/tests/language/asyncstar_thr...
tests/language/asyncstar_throw_in_catch_test.dart:41: await new
Future.error("Error2");
On 2015/02/23 12:33:49, sigurdm wrote:
> On 2015/02/20 12:16:08, floitsch wrote:
> > Unless this is tested in another test, you could add a foo4 that keeps this
> > line.
> 
> Ok.
> I removed the line, because it is never executed - but can make a version with
> it in that does not get canceled.

Even if it is canceled it might still impact code generation.

Powered by Google App Engine
This is Rietveld 408576698