Index: pkg/compiler/lib/src/universe/element_world_builder.dart |
diff --git a/pkg/compiler/lib/src/universe/element_world_builder.dart b/pkg/compiler/lib/src/universe/element_world_builder.dart |
index 24c414a59ea1555145f06090bb9eb6d63907623c..6a0ac2653c53cea6d36da9bda5ac556d852de8b3 100644 |
--- a/pkg/compiler/lib/src/universe/element_world_builder.dart |
+++ b/pkg/compiler/lib/src/universe/element_world_builder.dart |
@@ -21,7 +21,7 @@ class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase { |
BackendUsageBuilder backendUsageBuilder, |
SelectorConstraintsStrategy selectorConstraintsStrategy) |
: super( |
- backend.compiler.elementEnvironment, |
+ _resolution.elementEnvironment, |
_resolution.commonElements, |
backend.constantSystem, |
nativeBasicData, |
@@ -173,6 +173,7 @@ class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase { |
populateHierarchyNodes(); |
_closed = true; |
return _closedWorldCache = new ClosedWorldImpl( |
+ elementEnvironment: _elementEnvironment, |
commonElements: _commonElements, |
constantSystem: _constantSystem, |
nativeData: _nativeDataBuilder.close(), |