Index: runtime/vm/exceptions.cc |
diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc |
index 73e7d4ad3c950e1d1fc4e663c3a9747c3a2fb051..2a77c53194f4b131b5fb09c97be76066639aa132 100644 |
--- a/runtime/vm/exceptions.cc |
+++ b/runtime/vm/exceptions.cc |
@@ -396,9 +396,9 @@ RawObject* Exceptions::Create( |
Library& library = Library::Handle(); |
String& class_name = String::Handle(); |
switch (type) { |
- case kIndexOutOfRange: |
+ case kRange: |
library = Library::CoreLibrary(); |
- class_name = Symbols::New("IndexOutOfRangeException"); |
+ class_name = Symbols::New("RangeError"); |
break; |
case kArgument: |
library = Library::CoreLibrary(); |