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

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

Issue 9666006: Support for "a is Function". (Closed) Base URL: http://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 | « frog/leg/enqueue.dart ('k') | frog/leg/ssa/closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/lib/js_helper.dart
===================================================================
--- frog/leg/lib/js_helper.dart (revision 5320)
+++ frog/leg/lib/js_helper.dart (working copy)
@@ -1316,6 +1316,13 @@
return new StackTrace(JS("var", @"$0.stack", exception));
}
+class StackTrace {
+ var stack;
+ StackTrace(this.stack);
+ String toString() => stack != null ? stack : '';
+}
+
+
/**
* Called by generated code to build a map literal. [keyValuePairs] is
* a list of key, value, key, value, ..., etc.
@@ -1364,10 +1371,11 @@
callClosure1(closure, arg1) => closure(arg1);
callClosure2(closure, arg1, arg2) => closure(arg1, arg2);
-class StackTrace {
- var stack;
- StackTrace(this.stack);
- String toString() => stack != null ? stack : '';
+/**
+ * Super class for Dart closures.
+ */
+class Closure implements Function {
+ String toString() => "Closure";
}
bool jsHasOwnProperty(var jsObject, String property) {
« no previous file with comments | « frog/leg/enqueue.dart ('k') | frog/leg/ssa/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698