Index: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
index c69eee5b26fa35bd675b8122a49ab61f9ff33082..311f513feb374aa3eb67a4058e10a65020493801 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
@@ -124,7 +124,7 @@ class Emitter extends js_emitter.EmitterBase { |
NativeEmitter get nativeEmitter => task.nativeEmitter; |
TypeTestRegistry get typeTestRegistry => task.typeTestRegistry; |
CommonElements get commonElements => _closedWorld.commonElements; |
- ElementEnvironment get _elementEnvironment => compiler.elementEnvironment; |
+ ElementEnvironment get _elementEnvironment => _closedWorld.elementEnvironment; |
// The full code that is written to each hunk part-file. |
Map<OutputUnit, CodeOutput> outputBuffers = new Map<OutputUnit, CodeOutput>(); |