| Index: sdk/lib/core/errors.dart
|
| diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart
|
| index a47838bb0e700a436e9c062a0d1f2f1ee9046426..b799e00b1a8a4e9cb31e13ebb6fff7941828616f 100644
|
| --- a/sdk/lib/core/errors.dart
|
| +++ b/sdk/lib/core/errors.dart
|
| @@ -414,6 +414,8 @@ class IndexError extends ArgumentError implements RangeError {
|
| */
|
| class FallThroughError extends Error {
|
| FallThroughError();
|
| +
|
| + external String toString();
|
| }
|
|
|
| /**
|
| @@ -422,7 +424,7 @@ class FallThroughError extends Error {
|
| class AbstractClassInstantiationError extends Error {
|
| final String _className;
|
| AbstractClassInstantiationError(String this._className);
|
| - String toString() => "Cannot instantiate abstract class: '$_className'";
|
| + external String toString();
|
| }
|
|
|
|
|
| @@ -459,16 +461,20 @@ class NoSuchMethodError extends Error {
|
| * the signature of the method that would have been called if the parameters
|
| * had matched.
|
| */
|
| - NoSuchMethodError(Object receiver,
|
| - Symbol memberName,
|
| - List positionalArguments,
|
| - Map<Symbol ,dynamic> namedArguments,
|
| - [List existingArgumentNames = null])
|
| - : _receiver = receiver,
|
| - _memberName = memberName,
|
| - _arguments = positionalArguments,
|
| - _namedArguments = namedArguments,
|
| - _existingArgumentNames = existingArgumentNames;
|
| + external NoSuchMethodError(
|
| + this._receiver,
|
| + this._memberName,
|
| + this._arguments,
|
| + this._namedArguments,
|
| + [List existingArgumentNames = null]);
|
| +
|
| + external NoSuchMethodError._withType(
|
| + Object this._receiver,
|
| + /*String|Symbol*/ memberName,
|
| + int invocation_type,
|
| + List this._arguments,
|
| + Map<dynamic, dynamic> namedArguments,
|
| + [List existingArgumentNames = null]);
|
|
|
| external String toString();
|
| }
|
|
|