Index: pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
index 9efbc4b6eb1953beeda5332784bfbbd5c2cde02d..15b429769df75d99d823c7632e60543b1b2aaa9f 100644 |
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart |
@@ -823,7 +823,7 @@ class CodeGenerator extends tree_ir.StatementVisitor |
new StaticUse.staticTearOff(node.element.declaration)); |
return glue.isolateStaticClosureAccess(node.element); |
} |
- if (glue.isLazilyInitialized(node.element)) { |
+ if (node.useLazyGetter) { |
// Read a lazily initialized field. |
registry.registerStaticUse( |
new StaticUse.staticInit(node.element.declaration)); |