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

Unified Diff: runtime/lib/double.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « runtime/lib/date_patch.dart ('k') | runtime/lib/expando_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double.dart
diff --git a/runtime/lib/double.dart b/runtime/lib/double.dart
index 75de3c1149df50d5e7f52922b81e49407f428504..f4025f3b745ed90d6c66233c91568357720d57a6 100644
--- a/runtime/lib/double.dart
+++ b/runtime/lib/double.dart
@@ -157,7 +157,7 @@ class _Double implements double {
// look at the fractionDigits first.
// Step 7.
- if (fractionDigits !== null &&
+ if (fractionDigits != null &&
(fractionDigits < 0 || fractionDigits > 20)) {
// TODO(antonm): should be proper RangeError or Dart counterpart.
throw "Range error";
@@ -169,7 +169,7 @@ class _Double implements double {
// The dart function prints the shortest representation when fractionDigits
// equals null. The native function wants -1 instead.
- fractionDigits = (fractionDigits === null) ? -1 : fractionDigits;
+ fractionDigits = (fractionDigits == null) ? -1 : fractionDigits;
return _toStringAsExponential(fractionDigits);
}
« no previous file with comments | « runtime/lib/date_patch.dart ('k') | runtime/lib/expando_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698