Index: pkg/compiler/lib/src/inferrer/builder.dart |
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart |
index b258a6e7962691b303b129c9138a78a1049cdd72..cb7b330c464623f5a65c51d8930a163fdb1e2e61 100644 |
--- a/pkg/compiler/lib/src/inferrer/builder.dart |
+++ b/pkg/compiler/lib/src/inferrer/builder.dart |
@@ -2045,7 +2045,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation> |
ClassElement cls = outermostElement.enclosingClass; |
MethodElement element = cls.lookupSuperMember(Identifiers.noSuchMethod_); |
if (!Selectors.noSuchMethod_.signatureApplies(element)) { |
- ClassElement objectClass = compiler.commonElements.objectClass; |
+ ClassElement objectClass = closedWorld.commonElements.objectClass; |
element = objectClass.lookupMember(Identifiers.noSuchMethod_); |
} |
return handleStaticSend(node, selector, mask, element, arguments); |
@@ -2930,7 +2930,8 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation> |
Selector moveNextSelector = Selectors.moveNext; |
TypeMask moveNextMask = inTreeData.typeOfIteratorMoveNext(node); |
- ConstructorElement ctor = compiler.commonElements.streamIteratorConstructor; |
+ ConstructorElement ctor = |
+ closedWorld.commonElements.streamIteratorConstructor; |
/// Synthesize a call to the [StreamIterator] constructor. |
TypeInformation iteratorType = handleStaticSend( |