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

Unified Diff: runtime/lib/errors_patch.dart

Issue 669733004: Fix http://dartbug.com/21335 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | « no previous file | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/errors_patch.dart
===================================================================
--- runtime/lib/errors_patch.dart (revision 41218)
+++ runtime/lib/errors_patch.dart (working copy)
@@ -14,8 +14,8 @@
StackTrace _stackTrace;
}
-patch class AssertionError extends Error {
- AssertionError._create(
+class _AssertionError extends Error implements AssertionError {
+ _AssertionError._create(
Lasse Reichstein Nielsen 2014/10/21 07:53:43 This constructor doesn't even need to be named any
this._failedAssertion, this._url, this._line, this._column);
static _throwNew(int assertionStart, int assertionEnd)
@@ -36,10 +36,10 @@
final int _column;
}
-patch class TypeError extends AssertionError {
- TypeError._create(String url, int line, int column,
- this._srcType, this._dstType, this._dstName,
- this._errorMsg)
+class _TypeError extends _AssertionError implements TypeError {
+ _TypeError._create(String url, int line, int column,
+ this._srcType, this._dstType, this._dstName,
+ this._errorMsg)
: super._create("is assignable", url, line, column);
static _throwNew(int location,
@@ -66,10 +66,10 @@
final String _errorMsg;
}
-patch class CastError extends Error {
- CastError._create(this._url, this._line, this._column,
- this._srcType, this._dstType, this._dstName,
- this._errorMsg);
+class _CastError extends Error implements CastError {
+ _CastError._create(this._url, this._line, this._column,
+ this._srcType, this._dstType, this._dstName,
+ this._errorMsg);
// A CastError is allocated by TypeError._throwNew() when dst_name equals
// Exceptions::kCastErrorDstName.
« no previous file with comments | « no previous file | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698