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

Unified Diff: corelib/src/implementation/date.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. 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 | « corelib/src/expect.dart ('k') | corelib/src/math.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/date.dart
diff --git a/corelib/src/implementation/date.dart b/corelib/src/implementation/date.dart
index 9bf9cac92252d621b9b9d498efa9a5ef16b25c5c..0cbe6b4346c892f82a9a16c3aefcef526476cd02 100644
--- a/corelib/src/implementation/date.dart
+++ b/corelib/src/implementation/date.dart
@@ -24,18 +24,18 @@ class DateImplementation implements Date {
int parseIntOrZero(String matched) {
// TODO(floitsch): we should not need to test against the empty string.
if (matched === null || matched == "") return 0;
- return Math.parseInt(matched);
+ return parseInt(matched);
}
double parseDoubleOrZero(String matched) {
// TODO(floitsch): we should not need to test against the empty string.
if (matched === null || matched == "") return 0.0;
- return Math.parseDouble(matched);
+ return parseDouble(matched);
}
- int years = Math.parseInt(match[1]);
- int month = Math.parseInt(match[2]);
- int day = Math.parseInt(match[3]);
+ int years = parseInt(match[1]);
+ int month = parseInt(match[2]);
+ int day = parseInt(match[3]);
int hour = parseIntOrZero(match[4]);
int minute = parseIntOrZero(match[5]);
int second = parseIntOrZero(match[6]);
« no previous file with comments | « corelib/src/expect.dart ('k') | corelib/src/math.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698