Index: pkg/compiler/lib/src/js_backend/element_strategy.dart |
diff --git a/pkg/compiler/lib/src/js_backend/element_strategy.dart b/pkg/compiler/lib/src/js_backend/element_strategy.dart |
index b0c216f17fdf755ac98c872cb273d4cf26a3399a..cd014c8513498ad70be6f8209aa7ac6dc8ac9d9c 100644 |
--- a/pkg/compiler/lib/src/js_backend/element_strategy.dart |
+++ b/pkg/compiler/lib/src/js_backend/element_strategy.dart |
@@ -50,7 +50,7 @@ class ElementBackendStrategy implements BackendStrategy { |
NativeBasicData nativeBasicData, |
ClosedWorld closedWorld, |
SelectorConstraintsStrategy selectorConstraintsStrategy) { |
- return new ElementCodegenWorldBuilderImpl(_compiler.elementEnvironment, |
+ return new ElementCodegenWorldBuilderImpl(closedWorld.elementEnvironment, |
nativeBasicData, closedWorld, selectorConstraintsStrategy); |
} |