| Index: lib/compiler/implementation/lib/interceptors.dart
|
| diff --git a/lib/compiler/implementation/lib/interceptors.dart b/lib/compiler/implementation/lib/interceptors.dart
|
| index f9c61cbd7543c382c7cbc03c228430c48f37e795..bbaee6849e9aa8e958d5bff01f192d78e4aabf8f 100644
|
| --- a/lib/compiler/implementation/lib/interceptors.dart
|
| +++ b/lib/compiler/implementation/lib/interceptors.dart
|
| @@ -379,9 +379,9 @@ abs(receiver) {
|
| toInt(receiver) {
|
| if (receiver is !num) return UNINTERCEPTED(receiver.toInt());
|
|
|
| - if (receiver.isNaN()) throw new BadNumberFormatException('NaN');
|
| + if (receiver.isNaN()) throw new FormatException('NaN');
|
|
|
| - if (receiver.isInfinite()) throw new BadNumberFormatException('Infinity');
|
| + if (receiver.isInfinite()) throw new FormatException('Infinity');
|
|
|
| var truncated = receiver.truncate();
|
| return JS('bool', @'# == -0.0', truncated) ? 0 : truncated;
|
|
|