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

Issue 2510073002: Provide source map info for simple async methods. (Closed)

Created:
4 years, 1 month ago by Johnni Winther
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -49 lines) Patch
M pkg/compiler/lib/src/js/rewrite_async.dart View 12 chunks +27 lines, -20 lines 0 comments Download
M tests/compiler/dart2js/sourcemaps/diff.dart View 1 chunk +1 line, -5 lines 0 comments Download
M tests/compiler/dart2js/sourcemaps/html_parts.dart View 1 chunk +1 line, -9 lines 0 comments Download
M tests/compiler/dart2js/sourcemaps/lax_json_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/sourcemaps/output_structure.dart View 1 chunk +1 line, -5 lines 0 comments Download
M tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart View 1 chunk +3 lines, -1 line 0 comments Download
M tests/compiler/dart2js/sourcemaps/stacktrace_test.dart View 7 chunks +100 lines, -6 lines 4 comments Download

Messages

Total messages: 8 (2 generated)
Johnni Winther
4 years, 1 month ago (2016-11-17 13:45:35 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart File tests/compiler/dart2js/sourcemaps/stacktrace_test.dart (right): https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart#newcode133 tests/compiler/dart2js/sourcemaps/stacktrace_test.dart:133: // This call is no longer on the ...
4 years, 1 month ago (2016-11-17 15:20:54 UTC) #3
Johnni Winther
https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart File tests/compiler/dart2js/sourcemaps/stacktrace_test.dart (right): https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart#newcode133 tests/compiler/dart2js/sourcemaps/stacktrace_test.dart:133: // This call is no longer on the stack ...
4 years, 1 month ago (2016-11-18 08:22:08 UTC) #4
Johnni Winther
Committed patchset #1 (id:1) manually as d0e057903e3784747563f5dd6b8eefb53c25146b (presubmit successful).
4 years, 1 month ago (2016-11-18 08:28:49 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart File tests/compiler/dart2js/sourcemaps/stacktrace_test.dart (right): https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sourcemaps/stacktrace_test.dart#newcode133 tests/compiler/dart2js/sourcemaps/stacktrace_test.dart:133: // This call is no longer on the stack ...
4 years, 1 month ago (2016-11-18 15:31:39 UTC) #7
Johnni Winther
4 years, 1 month ago (2016-11-21 08:44:20 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sour...
File tests/compiler/dart2js/sourcemaps/stacktrace_test.dart (right):

https://codereview.chromium.org/2510073002/diff/1/tests/compiler/dart2js/sour...
tests/compiler/dart2js/sourcemaps/stacktrace_test.dart:133: // This call is no
longer on the stack when the error is thrown.
On 2016/11/18 15:31:38, Siggi Cherem (dart-lang) wrote:
> On 2016/11/18 08:22:08, Johnni Winther wrote:
> > On 2016/11/17 15:20:54, Siggi Cherem (dart-lang) wrote:
> > > if you are relying on this, consider adding one extra async step just in
> case,
> > > maybe a `await new Future(() {}))`.
> > > 
> > > The reason is that I believe Florian is experimenting with making async
> > methods
> > > return a sync future and not introduce an extra microtask. In that case,
the
> > > call to test2() will still be in the stack.
> > 
> > I'd rather have the test fail if this changes. Having the call test2 on the
> > stack would highly improve the quality of the stack trace.
> 
> At that point we would be only testing exceptions that happen before we unwind
> the stack, so it would be equivalent to a stack trace where test1/test2 are
not
> marked async, right?

Yes. I realize that the test wouldn't break from some a change since we only
test existence of the annotated positions.
> 
> Do you also want to test that the stack traces are good if the exception is
> thrown after the stack has been unwound?

Not in itself, only boundary cases. I'll update the test to test for positions
expected not to be present.

Powered by Google App Engine
This is Rietveld 408576698