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); |
} |
/** |