Index: pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart b/pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart |
index 935fa5f9625e3eff1f423e83e23676d7e55d5ead..1f6956d3c755dbababd052d7a876cba783e20392 100644 |
--- a/pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart |
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/field_visitor.dart |
@@ -140,7 +140,7 @@ class FieldVisitor { |
if (fieldAccessNeverThrows(field)) return false; |
if (backend.shouldRetainGetter(field)) return true; |
return field.isClassMember && |
- compiler.codegenWorld.hasInvokedGetter(field, compiler.world); |
+ compiler.codegenWorld.hasInvokedGetter(field, compiler.closedWorld); |
} |
bool fieldNeedsSetter(VariableElement field) { |
@@ -149,7 +149,7 @@ class FieldVisitor { |
if (field.isFinal || field.isConst) return false; |
if (backend.shouldRetainSetter(field)) return true; |
return field.isClassMember && |
- compiler.codegenWorld.hasInvokedSetter(field, compiler.world); |
+ compiler.codegenWorld.hasInvokedSetter(field, compiler.closedWorld); |
} |
static bool fieldAccessNeverThrows(VariableElement field) { |