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

Unified Diff: dart/sdk/lib/_internal/lib/core_patch.dart

Issue 22798006: Implement Error.stackTrace. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments, update status file, and fix another test. Created 7 years, 4 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 | « no previous file | dart/sdk/lib/_internal/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/lib/core_patch.dart
diff --git a/dart/sdk/lib/_internal/lib/core_patch.dart b/dart/sdk/lib/_internal/lib/core_patch.dart
index b256d0f2c7de2f51c291115da3fb8b2bf9fbcd54..207800aa34450eeb2f7356adccb315b55f025d8b 100644
--- a/dart/sdk/lib/_internal/lib/core_patch.dart
+++ b/dart/sdk/lib/_internal/lib/core_patch.dart
@@ -115,11 +115,9 @@ patch class Error {
return Primitives.objectToString(object);
}
- // TODO(11681): implement stackTrace in error object.
- patch StackTrace get stackTrace => null;
+ patch StackTrace get stackTrace => Primitives.extractStackTrace(this);
}
-
// Patch for DateTime implementation.
patch class DateTime {
patch DateTime._internal(int year,
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698