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 b7fe27550616671f6b8618222778c5a425574565..dc1f7da028f625417cb7b05660134ce13b7311fc 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 |
@@ -161,12 +161,7 @@ class ClassEmitter extends CodeEmitterHelper { |
fieldCode = FIELD_CODE_CHARACTERS[code - FIRST_FIELD_CODE]; |
} |
} |
- // Fields can only be reflected if their declaring class is reflectable |
- // (as they are only accessible via [ClassMirror.declarations]. However, |
- // set/get operations can be performed on them, so they are reflectable |
- // in some sense. |
- if (backend.isAccessibleByReflection(fieldElement) && |
- backend.isAccessibleByReflection(fieldElement.enclosingClass)) { |
+ if (backend.isAccessibleByReflection(fieldElement)) { |
DartType type = fieldElement.type; |
reflectionMarker = '-${task.metadataCollector.reifyType(type)}'; |
} |