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; |
} |
} |