Index: runtime/vm/code_generator.cc |
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc |
index daa15fdb8b1097727a7ab3f0428ed2abfc849546..386dc4dd5de55b6e0674c654b89160f184e33269 100644 |
--- a/runtime/vm/code_generator.cc |
+++ b/runtime/vm/code_generator.cc |
@@ -138,7 +138,7 @@ DEFINE_RUNTIME_ENTRY(AllocateArray, 2) { |
args.SetAt(1, Integer::Handle(Integer::New(0))); |
args.SetAt(2, Integer::Handle(Integer::New(Array::kMaxElements))); |
args.SetAt(3, Symbols::Length()); |
- Exceptions::ThrowByType(Exceptions::kRangeRange, args); |
+ Exceptions::ThrowByType(Exceptions::kRange, args); |
} |