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

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

Issue 9382041: Support getting of static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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: frog/leg/lib/core.dart
diff --git a/frog/leg/lib/core.dart b/frog/leg/lib/core.dart
index 0446894b90e691a799ce9a2a59fd78db70f9c0b0..006318f5b5c4dbb3c2e3b4e4f63a799aa34a2c44 100644
--- a/frog/leg/lib/core.dart
+++ b/frog/leg/lib/core.dart
@@ -276,6 +276,9 @@ builtin$toString$0(var value) {
return "-0.0";
}
if (value === null) return "null";
+ if (JS("bool", @"typeof $0 == 'function'", value)) {
+ return "Closure";
+ }
return JS("string", @"String($0)", value);
}

Powered by Google App Engine
This is Rietveld 408576698