| Index: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| index efec052e37bd4eba4be5b2e4340d662a0334e658..51d2f57b5e1512a317901e4322fabcbe3ab0452b 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
|
| @@ -671,7 +671,7 @@ class ProgramBuilder {
|
|
|
| bool _methodCanBeApplied(FunctionElement method) {
|
| return _compiler.enabledFunctionApply &&
|
| - _compiler.world.getMightBePassedToApply(method);
|
| + _compiler.closedWorld.getMightBePassedToApply(method);
|
| }
|
|
|
| // TODO(herhut): Refactor incremental compilation and remove method.
|
| @@ -731,8 +731,9 @@ class ProgramBuilder {
|
| isClosureCallMethod = true;
|
| } else {
|
| // Careful with operators.
|
| - canTearOff = universe.hasInvokedGetter(element, _compiler.world) ||
|
| - (canBeReflected && !element.isOperator);
|
| + canTearOff =
|
| + universe.hasInvokedGetter(element, _compiler.closedWorld) ||
|
| + (canBeReflected && !element.isOperator);
|
| assert(canTearOff ||
|
| !universe.methodsNeedingSuperGetter.contains(element));
|
| tearOffName = namer.getterForElement(element);
|
|
|