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 19af31f3f9bc6114ca1677d8050beea8dd77d9af..c505e13a4375c1c9ff744e61554e26847b78cfca 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
@@ -1106,7 +1106,7 @@ class Emitter extends js_emitter.EmitterBase { |
..add(metadata == null ? new jsAst.ArrayHole() : metadata) |
..add(js('#', namer.globalObjectForLibrary(library))) |
..add(initializer); |
- if (library == compiler.mainApp) { |
+ if (library == _closedWorld.elementEnvironment.mainLibrary) { |
parts.add(js.number(1)); |
} |