Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: lib/compiler/implementation/lib/interceptors.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/args/args.dart ('k') | lib/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « lib/args/args.dart ('k') | lib/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698