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

Unified Diff: frog/leg/enqueue.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/emitter.dart ('k') | frog/leg/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/enqueue.dart
===================================================================
--- frog/leg/enqueue.dart (revision 5320)
+++ frog/leg/enqueue.dart (working copy)
@@ -63,6 +63,10 @@
// If there is a property access with the same name as a method we
// need to emit the method.
if (compiler.universe.invokedGetters.contains(member.name)) {
+ // We will emit a closure, so make sure the closure class is
+ // generated.
+ compiler.closureClass.ensureResolved(compiler);
+ compiler.registerInstantiatedClass(compiler.closureClass);
return compiler.addToWorkList(member);
}
} else if (member.kind == ElementKind.GETTER) {
« no previous file with comments | « frog/leg/emitter.dart ('k') | frog/leg/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698