Index: corelib/src/exceptions.dart |
diff --git a/corelib/src/exceptions.dart b/corelib/src/exceptions.dart |
index 48ede27290e6295d68739f3a14c27fd1c1d36872..3e95797999cb3a90cce1e2ea8a3e4cd1c8b00e35 100644 |
--- a/corelib/src/exceptions.dart |
+++ b/corelib/src/exceptions.dart |
@@ -38,7 +38,8 @@ class NoSuchMethodException implements Exception { |
const NoSuchMethodException(Object this._receiver, |
String this._functionName, |
List this._arguments, |
- [List this._existingArgumentNames = null]); |
+ [List existingArgumentNames = null]) : |
+ this._existingArgumentNames = existingArgumentNames; |
String toString() { |
StringBuffer sb = new StringBuffer(); |
@@ -159,7 +160,7 @@ class UnsupportedOperationException implements Exception { |
class NotImplementedException implements Exception { |
- const NotImplementedException([String this._message]); |
+ const NotImplementedException([String message]) : this._message = message; |
String toString() => (this._message !== null |
? "NotImplementedException: $_message" |
: "NotImplementedException"); |