| Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| index 8b808f06dc260b84ac1840951de76e4abb20aaac..1d66cb51ee67accab7f1975e5b3c9ce5f2ca86a4 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| @@ -1084,6 +1084,10 @@ $lazyInitializerLogic
|
| if (checkedClasses.contains(compiler.functionClass) ||
|
| !checkedTypedefs.isEmpty) {
|
| FunctionElement call = cls.lookupLocalMember(Compiler.CALL_OPERATOR_NAME);
|
| + if (call == null) {
|
| + // If [cls] is a closure, it has a synthetic call operator method.
|
| + call = cls.lookupBackendMember(Compiler.CALL_OPERATOR_NAME);
|
| + }
|
| if (call != null) {
|
| generateInterfacesIsTests(compiler.functionClass,
|
| emitIsTest,
|
|
|