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

Unified Diff: runtime/lib/errors_patch.dart

Issue 18259021: Introduce StackTraceOnThrowMixin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
Index: runtime/lib/errors_patch.dart
diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart
index f14a50441bbd4e42e92db26a9034712aaf8a3cb5..31365e78100b3c94119f490ec1dd3f4c6e7ac551 100644
--- a/runtime/lib/errors_patch.dart
+++ b/runtime/lib/errors_patch.dart
@@ -6,7 +6,9 @@ patch class Error {
/* patch */ static String _objectToString(Object object) {
return Object._toString(object);
}
+}
+patch class StackTraceOnThrowMixin {
Lasse Reichstein Nielsen 2013/07/12 13:00:51 Pleeeeeeease consider dropping the "Mixin".
floitsch 2013/07/12 15:30:14 Done.
// TODO(11680): implement stackTrace on Error.
/* patch */ StackTrace get stackTrace => null;
}
@@ -173,7 +175,7 @@ patch class NoSuchMethodError {
}
}
-class _FiftyThreeBitOverflowError extends Error {
+class _FiftyThreeBitOverflowError extends Error with StackTraceOnThrowMixin {
final Object _value;
_FiftyThreeBitOverflowError(this._value);
« no previous file with comments | « no previous file | runtime/tests/vm/dart/isolate_mirror_local_test.dart » ('j') | sdk/lib/_internal/lib/core_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698