| Index: runtime/lib/byte_array.cc | 
| diff --git a/runtime/lib/byte_array.cc b/runtime/lib/byte_array.cc | 
| index 10d9a89555bbc572b56f2c4455d650c52fad366f..06efeee103a2b1c7b24157e77a510070826251b8 100644 | 
| --- a/runtime/lib/byte_array.cc | 
| +++ b/runtime/lib/byte_array.cc | 
| @@ -15,7 +15,7 @@ namespace dart { | 
|  | 
| // Checks to see if (index * num_bytes) is in the range | 
| // [0..array.ByteLength()).  without the risk of integer overflow.  If | 
| -// the index is out of range, then an IndexOutOfRangeException is thrown. | 
| +// the index is out of range, then a RangeError is thrown. | 
| static void RangeCheck(const ByteArray& array, | 
| intptr_t index, | 
| intptr_t num_bytes) { | 
| @@ -25,7 +25,7 @@ static void RangeCheck(const ByteArray& array, | 
| index, (array.ByteLength() / num_bytes))); | 
| GrowableArray<const Object*> args; | 
| args.Add(&error); | 
| -    Exceptions::ThrowByType(Exceptions::kIndexOutOfRange, args); | 
| +    Exceptions::ThrowByType(Exceptions::kRange, args); | 
| } | 
| } | 
|  | 
|  |