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

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

Issue 55173002: Fix a few warnings and update status file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: sdk/lib/core/errors.dart
diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart
index 1c9797ca0a1b60c96625165d55aaa87a86e8a9a3..e6b17b3003911d9313c2f70aa204cfed7a70b6c1 100644
--- a/sdk/lib/core/errors.dart
+++ b/sdk/lib/core/errors.dart
@@ -12,7 +12,7 @@ class Error {
* 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) {

Powered by Google App Engine
This is Rietveld 408576698