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

Unified Diff: dart/sdk/lib/core/errors.dart

Issue 56933002: Version 0.8.10.1 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | « dart/sdk/lib/async/future_impl.dart ('k') | dart/sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/core/errors.dart
===================================================================
--- dart/sdk/lib/core/errors.dart (revision 29785)
+++ dart/sdk/lib/core/errors.dart (working copy)
@@ -12,7 +12,7 @@
* toString method.
*/
static String safeToString(Object object) {
- if (object is int || object is double || object is bool || null == object) {
+ if (object is num || object is bool || null == object) {
return object.toString();
}
if (object is String) {
« no previous file with comments | « dart/sdk/lib/async/future_impl.dart ('k') | dart/sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698