Index: pkg/compiler/lib/src/js_model/js_strategy.dart |
diff --git a/pkg/compiler/lib/src/js_model/js_strategy.dart b/pkg/compiler/lib/src/js_model/js_strategy.dart |
index 96079c8cc112a7ca8c570c2f1683cf0de9de8492..505ea3bbd6a1f6d15b78073150c66f8cc4423cbf 100644 |
--- a/pkg/compiler/lib/src/js_model/js_strategy.dart |
+++ b/pkg/compiler/lib/src/js_model/js_strategy.dart |
@@ -143,7 +143,12 @@ class JsBackendStrategy implements BackendStrategy { |
NativeBasicData nativeBasicData, |
ClosedWorld closedWorld, |
SelectorConstraintsStrategy selectorConstraintsStrategy) { |
- return new KernelCodegenWorldBuilder(closedWorld.elementEnvironment, |
- nativeBasicData, closedWorld, selectorConstraintsStrategy); |
+ KernelFrontEndStrategy frontendStrategy = _compiler.frontendStrategy; |
+ return new KernelCodegenWorldBuilder( |
+ frontendStrategy.elementMap, |
+ closedWorld.elementEnvironment, |
+ nativeBasicData, |
+ closedWorld, |
+ selectorConstraintsStrategy); |
} |
} |