Index: sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
index 6205fedf470fb63ce685bc4862a1d04bd2d4d8db..dd2d29390f529dcf3bdaf78c304fe10420138d57 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
@@ -959,7 +959,7 @@ class CodeEmitterTask extends CompilerTask { |
emitMain(CodeBuffer buffer) { |
if (compiler.isMockCompilation) return; |
- Element main = compiler.mainApp.find(Compiler.MAIN); |
+ Element main = compiler.mainFunction; |
String mainCall = null; |
if (compiler.hasIsolateSupport()) { |
Element isolateMain = |