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

Unified Diff: sdk/lib/core/errors.dart

Issue 1971193002: Patches to support Dart VM patch files in dart2js. (Closed) Base URL: sso://user/ahe/dart-sdk@master
Patch Set: Created 4 years, 6 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 | « sdk/lib/core/bool.dart ('k') | sdk/lib/core/expando.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « sdk/lib/core/bool.dart ('k') | sdk/lib/core/expando.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698