Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/resolution/members.dart (revision 15190) |
+++ sdk/lib/_internal/compiler/implementation/resolution/members.dart (working copy) |
@@ -1507,6 +1507,8 @@ |
scope = oldScope; |
enclosingElement = previousEnclosingElement; |
+ |
+ world.registerInstantiatedClass(compiler.functionClass); |
} |
visitIf(If node) { |
@@ -1882,12 +1884,6 @@ |
world.registerStaticUse(target.declaration); |
} |
} |
- if (target == null) { |
- // If we haven't found an element for this send, it might be a |
- // dynamic send on a primitive value. Register the selector with |
- // the world to add an interceptor, if necessary. |
- world.registerUsedSelector(selector); |
- } |
} |
visitLiteralInt(LiteralInt node) { |