Chromium Code Reviews| 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. |
|
Mads Ager (google)
2012/10/23 14:38:04
If these should be NoSuchMethodErrors, could you f
|
| + |
| +class _ClosureArgumentMismatchException implements Exception { |
| + const _ClosureArgumentMismatchException(); |
| + String toString() => "Closure argument mismatch"; |
| +} |
| + |
| + |
| +class _ObjectNotClosureException implements Exception { |
| + const _ObjectNotClosureException(); |
| + String toString() => "Object is not closure"; |
| +} |