Index: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart |
index 8f3a3786a4c6efa0b0e7a52082f1497ba4577804..c7443ac3c8f27e87c95877933a662d7c6934dc66 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart |
@@ -53,12 +53,12 @@ class TypeVariableHandler { |
bool hasMemberNeededForReflection(ClassElement cls) { |
bool result = false; |
cls.implementation.forEachMember((ClassElement cls, Element member) { |
- result = result || backend.isNeededForReflection(member); |
+ result = result || backend.referencedFromMirrorSystem(member); |
}); |
return result; |
} |
- if (!backend.isNeededForReflection(cls) && |
+ if (!backend.referencedFromMirrorSystem(cls) && |
!hasMemberNeededForReflection(cls)) { |
return; |
} |