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

Unified Diff: frog/leg/lib/js_helper.dart

Issue 9677039: toStringAsExponential allows the fractionDigits argument to be null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « no previous file | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/lib/js_helper.dart
diff --git a/frog/leg/lib/js_helper.dart b/frog/leg/lib/js_helper.dart
index 85321333b5f72d16402818e4808a311383e9509e..9cc4636b8d71a47d8a50f956c93fba768557af76 100644
--- a/frog/leg/lib/js_helper.dart
+++ b/frog/leg/lib/js_helper.dart
@@ -968,7 +968,7 @@ builtin$toStringAsExponential$1(receiver, fractionDigits) {
if (receiver is !num) {
return UNINTERCEPTED(receiver.toStringAsExponential(fractionDigits));
}
- checkNum(fractionDigits);
+ if (fractionDigits !== null) checkNum(fractionDigits);
String result = JS('String', @'$0.toExponential($1)',
receiver, fractionDigits);
« no previous file with comments | « no previous file | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698