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

Unified Diff: runtime/lib/double.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 | « runtime/lib/double.cc ('k') | runtime/lib/math.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double.dart
diff --git a/runtime/lib/double.dart b/runtime/lib/double.dart
index 98cb0055c237218b97ca944304146a143456b59e..bb3ef1ad63db977d23b105d5b3f62c706c8dfa78 100644
--- a/runtime/lib/double.dart
+++ b/runtime/lib/double.dart
@@ -8,7 +8,7 @@ class Double implements double {
int hashCode() {
try {
return toInt();
- } catch (BadNumberFormatException e) {
+ } catch (FormatException e) {
return 0;
}
}
@@ -100,7 +100,7 @@ class Double implements double {
double abs() {
// Handle negative 0.0.
- if (this == 0.0) return 0.0;
+ if (this == 0.0) return 0.0;
return this < 0.0 ? -this : this;
}
« no previous file with comments | « runtime/lib/double.cc ('k') | runtime/lib/math.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698