| Index: runtime/lib/double_patch.dart
|
| diff --git a/runtime/lib/double_patch.dart b/runtime/lib/double_patch.dart
|
| index 9e2abeb4ece9d7ee80a7404bca87f8e635038d55..6a597a8b354e5a76aa0448553d50c6779a285e63 100644
|
| --- a/runtime/lib/double_patch.dart
|
| +++ b/runtime/lib/double_patch.dart
|
| @@ -45,6 +45,8 @@ patch class double {
|
| if (onError == null) throw new FormatException(str);
|
| return onError(str);
|
| }
|
| + // Parse can create a NaN that is not identical to double.NAN.
|
| + if (result.isNaN) return NAN;
|
| return result;
|
| }
|
| }
|
|
|