Created
April 20, 2013 03:52
-
-
Save seaneagan/5424679 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The current dart:async getAttachedStackTrace could potentially be used for sync errors as well, in which case the API could move directly to the StackTrace class: | |
| class StackTrace { | |
| /// the [StackTrace] attached to the given [error] | |
| StackTrace.attachedTo(var error); | |
| /// attach the current [StackTrace] to the given [error]. | |
| static void attach(var error); | |
| //... | |
| } | |
| the "throw" construct could implicitly call StackTrace.attach, and possibly could then get rid of the "catch(error, stackTrace)" construct |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test comment