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

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

Issue 713243002: Arguments swapped in IndexError constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
Index: sdk/lib/core/errors.dart
diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart
index d6a6e4c96ef6d835d716f1b0c1196779ff4f445c..f4509eb774968ed67531c05c56d03ee31c75ab07 100644
--- a/sdk/lib/core/errors.dart
+++ b/sdk/lib/core/errors.dart
@@ -317,7 +317,7 @@ class IndexError extends ArgumentError implements RangeError {
*
* The message is used as part of the string representation of the error.
*/
- IndexError(indexable, this.invalidValue,
+ IndexError(this.invalidValue, indexable,
[String message = "Index out of range", int length])
: this.indexable = indexable,
this.length = (length != null) ? length : indexable.length,

Powered by Google App Engine
This is Rietveld 408576698