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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart

Issue 923463002: dart2js: add special getter to Closure class in new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comment. Created 5 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
index 0193ba25b95472978af13d76329126726cdc2a3a..c5f1621ba76c8e43018fae1c94aedba88f9b079c 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart
@@ -44,14 +44,6 @@ class ClassEmitter extends CodeEmitterHelper {
emitRuntimeTypeInformation(cls, builder);
emitNativeInfo(cls, builder);
- if (classElement == backend.closureClass) {
- // We add a special getter here to allow for tearing off a closure from
- // itself.
- String name = namer.getMappedInstanceName(Compiler.CALL_OPERATOR_NAME);
- jsAst.Fun function = js('function() { return this; }');
- builder.addProperty(namer.getterNameFromAccessorName(name), function);
- }
-
emitClassBuilderWithReflectionData(cls, builder, enclosingBuilder);
}
/**
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698