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

Unified Diff: lib/runtime/dart/core.js

Issue 1348453004: fix some errors in our SDK, mostly around numbers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 3 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: lib/runtime/dart/core.js
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js
index 7758ec7d69a34a63141a34a01a0738b9b54e5e1a..8aa5e0e21902a9d58b4a0f5eddab708228e1ee11 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -607,7 +607,7 @@ dart_library.library('dart/core', null, /* Imports */[
Error() {
}
static safeToString(object) {
- if (dart.is(object, num) || typeof object == 'boolean' || null == object) {
+ if (typeof object == 'number' || typeof object == 'boolean' || null == object) {
return dart.toString(object);
}
if (typeof object == 'string') {

Powered by Google App Engine
This is Rietveld 408576698