Index: pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart |
index 70d80e07f6df5148abb78ba6bb1bc452b54f6f37..409e66e56c2e690634ecfdba870a2d936822d8cb 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart |
@@ -35,7 +35,7 @@ class NsmEmitter extends CodeEmitterHelper { |
void emitNoSuchMethodHandlers(AddPropertyFunction addProperty) { |
ClassStubGenerator generator = new ClassStubGenerator(task.emitter, |
- compiler.commonElements, namer, codegenWorldBuilder, closedWorld, |
+ closedWorld.commonElements, namer, codegenWorldBuilder, closedWorld, |
enableMinification: compiler.options.enableMinification); |
// Keep track of the JavaScript names we've already added so we |
@@ -174,9 +174,10 @@ class NsmEmitter extends CodeEmitterHelper { |
} |
// Startup code that loops over the method names and puts handlers on the |
// Object class to catch noSuchMethod invocations. |
- ClassEntity objectClass = compiler.commonElements.objectClass; |
+ ClassEntity objectClass = closedWorld.commonElements.objectClass; |
jsAst.Expression createInvocationMirror = backend.emitter |
- .staticFunctionAccess(compiler.commonElements.createInvocationMirror); |
+ .staticFunctionAccess( |
+ closedWorld.commonElements.createInvocationMirror); |
if (useDiffEncoding) { |
statements.add(js.statement( |
'''{ |