Index: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
index d4c7fc3e2d169779b01ace9e8b9d67e532caf406..01b1c65980928a0cf21bacb2f3649ef64507c844 100644 |
--- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
@@ -440,9 +440,9 @@ class ProgramBuilder { |
return staticNonFinalFields.map(_buildStaticField).toList(growable: false); |
} |
- StaticField _buildStaticField(FieldElement element) { |
+ StaticField _buildStaticField(FieldEntity element) { |
ConstantValue initialValue = |
- _constantHandler.getConstantValue(element.constant); |
+ _worldBuilder.getConstantFieldInitializer(element); |
// TODO(zarah): The holder should not be registered during building of |
// a static field. |
_registry.registerHolder(_namer.globalObjectForConstant(initialValue), |