| Index: pkg/polymer/lib/deserialize.dart
|
| diff --git a/pkg/polymer/lib/deserialize.dart b/pkg/polymer/lib/deserialize.dart
|
| index 0abd1b1c59bcdf3d4bc72921c8fd4cb647442f40..60e63f7588ccfa43c502f45f0464544672d18dbc 100644
|
| --- a/pkg/polymer/lib/deserialize.dart
|
| +++ b/pkg/polymer/lib/deserialize.dart
|
| @@ -12,13 +12,13 @@ final _typeHandlers = () {
|
| var m = new Map();
|
| m[#dart.core.String] = (x, _) => x;
|
| m[#dart.core.Null] = (x, _) => x;
|
| - m[#dart.core.DateTime] = (x, _) {
|
| + m[#dart.core.DateTime] = (x, def) {
|
| // TODO(jmesserly): shouldn't need to try-catch here
|
| // See: https://code.google.com/p/dart/issues/detail?id=1878
|
| try {
|
| return DateTime.parse(x);
|
| } catch (e) {
|
| - return new DateTime.now();
|
| + return def;
|
| }
|
| };
|
| m[#dart.core.bool] = (x, _) => x != 'false';
|
|
|