Index: pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart |
index 4bb84a18b80d40f99d12322f43887b74d35863ba..d5a7f0eede37890ff127ab5a451aea9b1cd20c58 100644 |
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart |
@@ -507,10 +507,10 @@ class FragmentEmitter { |
'directAccessTestExpression': js.js(directAccessTestExpression), |
'typeNameProperty': js.string(ModelEmitter.typeNameProperty), |
'cyclicThrow': backend.emitter |
- .staticFunctionAccess(compiler.commonElements.cyclicThrowHelper), |
+ .staticFunctionAccess(_closedWorld.commonElements.cyclicThrowHelper), |
'operatorIsPrefix': js.string(namer.operatorIsPrefix), |
'tearOffCode': new js.Block(buildTearOffCode(compiler.options, |
- backend.emitter.emitter, backend.namer, compiler.commonElements)), |
+ backend.emitter.emitter, backend.namer, _closedWorld.commonElements)), |
'embeddedTypes': generateEmbeddedGlobalAccess(TYPES), |
'embeddedInterceptorTags': |
generateEmbeddedGlobalAccess(INTERCEPTORS_BY_TAG), |
@@ -1327,7 +1327,7 @@ class FragmentEmitter { |
js.Property emitMangledGlobalNames() { |
List<js.Property> names = <js.Property>[]; |
- CommonElements commonElements = compiler.commonElements; |
+ CommonElements commonElements = _closedWorld.commonElements; |
// We want to keep the original names for the most common core classes when |
// calling toString on them. |
List<ClassElement> nativeClassesNeedingUnmangledName = [ |