Index: lib/string.cc |
=================================================================== |
--- lib/string.cc (revision 16415) |
+++ lib/string.cc (working copy) |
@@ -32,8 +32,7 @@ |
} |
intptr_t value = Smi::Cast(index_object).Value(); |
if (Utf::IsOutOfRange(value)) { |
- const Array& args = Array::Handle(Object::empty_array()); |
- Exceptions::ThrowByType(Exceptions::kArgument, args); |
+ Exceptions::ThrowByType(Exceptions::kArgument, Object::empty_array()); |
} else { |
if (!Utf::IsLatin1(value)) { |
is_one_byte_string = false; |