| Index: runtime/lib/integers.cc
|
| ===================================================================
|
| --- runtime/lib/integers.cc (revision 28096)
|
| +++ runtime/lib/integers.cc (working copy)
|
| @@ -232,9 +232,7 @@
|
| const Smi& amount,
|
| const bool silent = false) {
|
| if (amount.Value() < 0) {
|
| - const Array& args = Array::Handle(Array::New(1));
|
| - args.SetAt(0, amount);
|
| - Exceptions::ThrowByType(Exceptions::kArgument, args);
|
| + Exceptions::ThrowArgumentError(amount);
|
| }
|
| if (value.IsSmi()) {
|
| const Smi& smi_value = Smi::Cast(value);
|
|
|