| Index: runtime/lib/double.cc
|
| diff --git a/runtime/lib/double.cc b/runtime/lib/double.cc
|
| index 95d5ad34758dab248cc00299cf9ddef626cd78c8..88526887778ff87e4c3ef040df43f46e388f6c1f 100644
|
| --- a/runtime/lib/double.cc
|
| +++ b/runtime/lib/double.cc
|
| @@ -171,7 +171,7 @@ DEFINE_NATIVE_ENTRY(Double_toInt, 1) {
|
| GrowableArray<const Object*> args;
|
| args.Add(&String::ZoneHandle(String::New(
|
| "Infinity or NaN toInt")));
|
| - Exceptions::ThrowByType(Exceptions::kBadNumberFormat, args);
|
| + Exceptions::ThrowByType(Exceptions::kFormat, args);
|
| }
|
| double result = trunc(arg.value());
|
| if ((Smi::kMinValue <= result) && (result <= Smi::kMaxValue)) {
|
|
|