| Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 29416)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy)
|
| @@ -1541,9 +1541,9 @@
|
| compiler);
|
| return receiverType.refine(selector, compiler);
|
| }
|
| - // If [JSInvocationMirror._invokeOn] has been called, we must not create a
|
| - // typed selector based on the receiver type.
|
| - return backend.compiler.enabledInvokeOn ? selector.asUntyped : selector;
|
| + // If [JSInvocationMirror._invokeOn] is enabled, and this call
|
| + // might hit a `noSuchMethod`, we register an untyped selector.
|
| + return selector.extendIfReachesAll(compiler);
|
| }
|
|
|
| void registerMethodInvoke(HInvokeDynamic node) {
|
|
|