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

Unified Diff: sdk/lib/html/html_common/conversions.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 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 | « sdk/lib/core/date_time.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/html_common/conversions.dart
diff --git a/sdk/lib/html/html_common/conversions.dart b/sdk/lib/html/html_common/conversions.dart
index f4d42adfbd8d103e5c0d34dd38192821fdae878e..b8d9183fd5b6bda5507ff53f152573dddc28edc6 100644
--- a/sdk/lib/html/html_common/conversions.dart
+++ b/sdk/lib/html/html_common/conversions.dart
@@ -117,9 +117,9 @@ _convertDartToNative_PrepareForStructuredClone(value) {
if (e is bool) return e;
if (e is num) return e;
if (e is String) return e;
- if (e is Date) {
+ if (e is DateTime) {
// TODO(sra).
- throw new UnimplementedError('structured clone of Date');
+ throw new UnimplementedError('structured clone of DateTime');
}
if (e is RegExp) {
// TODO(sra).
@@ -265,7 +265,7 @@ convertNativeToDart_AcceptStructuredClone(object, {mustCopy = false}) {
if (isJavaScriptDate(e)) {
// TODO(sra).
- throw new UnimplementedError('structured clone of Date');
+ throw new UnimplementedError('structured clone of DateTime');
}
if (isJavaScriptRegExp(e)) {
« no previous file with comments | « sdk/lib/core/date_time.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698