Chromium Code Reviews| Index: runtime/lib/errors_patch.dart |
| diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart |
| index f52ff8f14a582cadd5c8e6e5d6611e477b662b9f..0814d0151a64138de96f403da5927df5a47388bf 100644 |
| --- a/runtime/lib/errors_patch.dart |
| +++ b/runtime/lib/errors_patch.dart |
| @@ -6,6 +6,9 @@ patch class Error { |
| /* patch */ static String _objectToString(Object object) { |
| return Object._toString(object); |
| } |
| + |
| + // TODO(XYZ): implement stackTrace on Error. |
|
Lasse Reichstein Nielsen
2013/07/03 13:06:13
XYZ -> number.
floitsch
2013/07/03 14:50:20
Done.
|
| + /* patch */ StackTrace get stackTrace => null; |
| } |
| patch class NoSuchMethodError { |
| @@ -38,11 +41,11 @@ patch class NoSuchMethodError { |
| namedArguments[argumentNames[i]] = arg_value; |
| } |
| throw new NoSuchMethodError._withType(receiver, |
| - memberName, |
| - invocation_type, |
| - positionalArguments, |
| - namedArguments, |
| - existingArgumentNames); |
| + memberName, |
| + invocation_type, |
| + positionalArguments, |
| + namedArguments, |
| + existingArgumentNames); |
| } |
| // Remember the type from the invocation mirror or static compilation |
| @@ -50,20 +53,20 @@ patch class NoSuchMethodError { |
| // that no information is available. |
| final int _invocation_type; |
| - const NoSuchMethodError(Object this._receiver, |
| - String this._memberName, |
| - List this._arguments, |
| - Map<String,dynamic> this._namedArguments, |
| - [List existingArgumentNames = null]) |
| + NoSuchMethodError(Object this._receiver, |
| + String this._memberName, |
| + List this._arguments, |
| + Map<String,dynamic> this._namedArguments, |
| + [List existingArgumentNames = null]) |
| : this._existingArgumentNames = existingArgumentNames, |
| this._invocation_type = -1; |
| - const NoSuchMethodError._withType(Object this._receiver, |
| - String this._memberName, |
| - this._invocation_type, |
| - List this._arguments, |
| - Map<String,dynamic> this._namedArguments, |
| - [List existingArgumentNames = null]) |
| + NoSuchMethodError._withType(Object this._receiver, |
| + String this._memberName, |
| + this._invocation_type, |
| + List this._arguments, |
| + Map<String,dynamic> this._namedArguments, |
| + [List existingArgumentNames = null]) |
| : this._existingArgumentNames = existingArgumentNames; |
| @@ -170,9 +173,9 @@ patch class NoSuchMethodError { |
| } |
| } |
| -class _FiftyThreeBitOverflowError implements Error { |
| +class _FiftyThreeBitOverflowError extends Error { |
| final Object _value; |
| - const _FiftyThreeBitOverflowError(this._value); |
| + _FiftyThreeBitOverflowError(this._value); |
| String toString() => "53-bit Overflow: $_value"; |
| } |