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

Issue 10701084: Properly capture and pass the stack trace in Future exceptions. (Closed)

Created:
8 years, 5 months ago by nweiz
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Properly capture and pass the stack trace in Future exceptions. Committed: https://code.google.com/p/dart/source/detail?r=9378

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M corelib/src/implementation/future_implementation.dart View 2 chunks +5 lines, -5 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
8 years, 5 months ago (2012-07-03 19:10:17 UTC) #1
Siggi Cherem (dart-lang)
lgtm https://chromiumcodereview.appspot.com/10701084/diff/1/corelib/src/implementation/future_implementation.dart File corelib/src/implementation/future_implementation.dart (right): https://chromiumcodereview.appspot.com/10701084/diff/1/corelib/src/implementation/future_implementation.dart#newcode182 corelib/src/implementation/future_implementation.dart:182: } catch (Exception ex, final stackTrace) { weird, ...
8 years, 5 months ago (2012-07-03 19:13:46 UTC) #2
nweiz
https://chromiumcodereview.appspot.com/10701084/diff/1/corelib/src/implementation/future_implementation.dart File corelib/src/implementation/future_implementation.dart (right): https://chromiumcodereview.appspot.com/10701084/diff/1/corelib/src/implementation/future_implementation.dart#newcode182 corelib/src/implementation/future_implementation.dart:182: } catch (Exception ex, final stackTrace) { On 2012/07/03 ...
8 years, 5 months ago (2012-07-03 21:39:26 UTC) #3
Siggi Cherem (dart-lang)
8 years, 5 months ago (2012-07-03 22:10:06 UTC) #4
https://chromiumcodereview.appspot.com/10701084/diff/1/corelib/src/implementa...
File corelib/src/implementation/future_implementation.dart (right):

https://chromiumcodereview.appspot.com/10701084/diff/1/corelib/src/implementa...
corelib/src/implementation/future_implementation.dart:182: } catch (Exception
ex, final stackTrace) {
On 2012/07/03 21:39:26, nweiz wrote:
> On 2012/07/03 19:13:46, sigmund wrote:
> > weird, why is this needed? what if it was 'var' or we omit any annotation
> here?
> 
> With "var" or "final", the stack trace isn't captured. "catch (ex" doesn't
> compile at all. Only "Exception" works. I have no idea why this is the case.

weird... if you haven't already, file a bug on the VM about this issue.

Powered by Google App Engine
This is Rietveld 408576698