Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
index 377b470171758ba408a636c7d28eae9dd66b94b5..34e776c58f379804411e2a64bab82864391e973d 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart |
@@ -726,10 +726,11 @@ class JavaScriptBackend extends Backend { |
} |
} |
- void registerMetadataConstant(Constant constant, |
+ void registerMetadataConstant(MetadataAnnotation metadata, |
Element annotatedElement, |
Registry registry) { |
assert(registry.isForResolution); |
+ Constant constant = constants.getConstantForMetadata(metadata); |
registerCompileTimeConstant(constant, registry); |
metadataConstants.add(new Dependency(constant, annotatedElement)); |
} |