Index: pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart |
index 923d331edf0084a990fa3f3c59ab865e53b58ae4..137c63782d6790664f202aa0580fda3ecec099f1 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart |
@@ -132,20 +132,20 @@ jsAst.Statement buildSetupProgram( |
'enabledJsInterop': backend.nativeBasicData.isJsInteropUsed, |
'jsInteropBoostrap': backend.jsInteropAnalysis.buildJsInteropBootstrap(), |
'isInterceptorClass': |
- namer.operatorIs(compiler.commonElements.jsInterceptorClass), |
- 'isObject': namer.operatorIs(compiler.commonElements.objectClass), |
+ namer.operatorIs(closedWorld.commonElements.jsInterceptorClass), |
+ 'isObject': namer.operatorIs(closedWorld.commonElements.objectClass), |
'specProperty': js.string(namer.nativeSpecProperty), |
'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(), |
'hasRetainedMetadata': backend.mirrorsData.hasRetainedMetadata, |
'types': typesAccess, |
'objectClassName': js.quoteName(namer.runtimeTypeName( |
// ignore: UNNECESSARY_CAST |
- compiler.commonElements.objectClass as Entity)), |
+ closedWorld.commonElements.objectClass as Entity)), |
'needsStructuredMemberInfo': emitter.needsStructuredMemberInfo, |
- 'usesMangledNames': compiler.commonElements.mirrorsLibrary != null || |
+ 'usesMangledNames': closedWorld.commonElements.mirrorsLibrary != null || |
closedWorld.backendUsage.isFunctionApplyUsed, |
'tearOffCode': buildTearOffCode( |
- compiler.options, emitter, namer, compiler.commonElements), |
+ compiler.options, emitter, namer, closedWorld.commonElements), |
'nativeInfoHandler': nativeInfoHandler, |
'operatorIsPrefix': js.string(namer.operatorIsPrefix), |
'deferredActionString': js.string(namer.deferredAction) |