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

Unified Diff: lib/utf/utf_core.dart

Issue 9963029: Fix some warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (due to error messages during upload) Created 8 years, 9 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 | « lib/isolate/frog/ports.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utf/utf_core.dart
diff --git a/lib/utf/utf_core.dart b/lib/utf/utf_core.dart
index 01c537594f78190f326548785f83f9e87a164743..7649da7086fa4516409de86fb2e0b39eaba426cc 100644
--- a/lib/utf/utf_core.dart
+++ b/lib/utf/utf_core.dart
@@ -219,13 +219,13 @@ class _ListRange implements Iterable {
this._offset = offset,
this._length = (length == null ? source.length - offset : length) {
if (_offset < 0 || _offset > _source.length) {
- throw new IndexOutOfRangeException("offset out of range (< 0)");
+ throw new IndexOutOfRangeException(_offset);
}
if (_length != null && (_length < 0)) {
- throw new IndexOutOfRangeException("length out of range (< 0)");
+ throw new IndexOutOfRangeException(_length);
}
if (_length + _offset > _source.length) {
- throw new IndexOutOfRangeException("offset + length > source.length");
+ throw new IndexOutOfRangeException(_length + _offset);
}
}
« no previous file with comments | « lib/isolate/frog/ports.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698