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

Unified Diff: runtime/lib/errors_patch.dart

Issue 11233063: Move ObjectNotClosureException and ClosureArgumentMismatchException to patch file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: checked mode test expectations. Created 8 years, 2 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 | « lib/core/exceptions.dart ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/errors_patch.dart
diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart
index fd6ec5800fb0236929996220c34fb799fc352d3c..7894ae3466267319fda0fb1ebfc2b262f2046f97 100644
--- a/runtime/lib/errors_patch.dart
+++ b/runtime/lib/errors_patch.dart
@@ -7,3 +7,16 @@ patch class NoSuchMethodError {
return Object._toString(object);
}
}
+
+// Exceptions that should be NoSuchMethodError instead.
+
+class _ClosureArgumentMismatchException implements Exception {
+ const _ClosureArgumentMismatchException();
+ String toString() => "Closure argument mismatch";
+}
+
+
+class _ObjectNotClosureException implements Exception {
+ const _ObjectNotClosureException();
+ String toString() => "Object is not closure";
+}
« no previous file with comments | « lib/core/exceptions.dart ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698