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; |
Lasse Reichstein Nielsen
2013/11/25 12:37:40
This seems like an unnecessary hack.
The NaNs sho
floitsch
2013/11/25 12:50:53
completely agree.
Please file a bug for the VM so
|
return result; |
} |
} |