Index: pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
index bd070c738c1bc19c50e829e74561d2ad0acb049b..bccbce84ef88848779263eb1bbbe65b3250e7238 100644 |
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
@@ -141,7 +141,7 @@ class ContainerBuilder extends CodeEmitterHelper { |
Iterable<int> metadataIndices = |
parameter.metadata.map((MetadataAnnotation annotation) { |
ConstantValue constant = |
- backend.constants.getConstantForMetadata(annotation).value; |
+ backend.constants.getConstantValueForMetadata(annotation); |
backend.constants.addCompileTimeConstantForEmission(constant); |
return task.metadataCollector.reifyMetadata(annotation); |
}); |