Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index f688ff7f0d66813c8d0b9edd9b6c0b5f5f7ebfb0..a2a2d5786d07bfba59291d814ffe18a457fcae76 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -2996,6 +2996,10 @@ class JavaScriptImpactTransformer extends ImpactTransformer { |
// TODO(johnniwinther): Store the correct use in impacts. |
new StaticUse.foreignUse(staticUse)); |
} |
+ for (Selector selector in backendImpact.dynamicUses) { |
+ assert(selector != null); |
+ worldImpact.registerDynamicUse(new DynamicUse(selector, null)); |
+ } |
for (InterfaceType instantiatedType in backendImpact.instantiatedTypes) { |
backend.registerBackendUse(instantiatedType.element); |
worldImpact.registerTypeUse(new TypeUse.instantiation(instantiatedType)); |