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

Unified Diff: sdk/lib/async/zone.dart

Issue 598993002: Add missing null-tests to async error functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add co19 issue number to status file. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/async/stream_pipe.dart ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/zone.dart
diff --git a/sdk/lib/async/zone.dart b/sdk/lib/async/zone.dart
index 1f2993d2f5413689f361b52c13832173370be43b..465eeef7ee70088ded0ff975deb129d668f8b576 100644
--- a/sdk/lib/async/zone.dart
+++ b/sdk/lib/async/zone.dart
@@ -36,12 +36,13 @@ typedef Zone ForkHandler(Zone self, ZoneDelegate parent, Zone zone,
ZoneSpecification specification,
Map zoneValues);
-/// Pair of error and stack trace. Returned by [Zone.errorCallback].
+/** Pair of error and stack trace. Returned by [Zone.errorCallback]. */
class AsyncError implements Error {
final error;
final StackTrace stackTrace;
AsyncError(this.error, this.stackTrace);
+
String toString() => error.toString();
}
@@ -254,10 +255,10 @@ abstract class Zone {
// Private constructor so that it is not possible instantiate a Zone class.
Zone._();
- /// The root zone that is implicitly created.
+ /** The root zone that is implicitly created. */
static const Zone ROOT = _ROOT_ZONE;
- /// The currently running zone.
+ /** The currently running zone. */
static Zone _current = _ROOT_ZONE;
static Zone get current => _current;
« no previous file with comments | « sdk/lib/async/stream_pipe.dart ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698