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

Unified Diff: runtime/lib/string.cc

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerated html files. Created 8 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
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | runtime/lib/string_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string.cc
diff --git a/runtime/lib/string.cc b/runtime/lib/string.cc
index f10337a861addc422dc2fe574e3e53b3f3550d6c..7707ed63abcb199f12128f13646516d188b0a0dc 100644
--- a/runtime/lib/string.cc
+++ b/runtime/lib/string.cc
@@ -84,14 +84,14 @@ static int32_t StringValueAt(const String& str, const Integer& index) {
if ((index < 0) || (index >= str.Length())) {
GrowableArray<const Object*> arguments;
arguments.Add(&smi);
- Exceptions::ThrowByType(Exceptions::kIndexOutOfRange, arguments);
+ Exceptions::ThrowByType(Exceptions::kRange, arguments);
}
return str.CharAt(index);
} else {
// An index larger than Smi is always illegal.
GrowableArray<const Object*> arguments;
arguments.Add(&index);
- Exceptions::ThrowByType(Exceptions::kIndexOutOfRange, arguments);
+ Exceptions::ThrowByType(Exceptions::kRange, arguments);
return 0;
}
}
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | runtime/lib/string_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698