Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: lib/src/codegen/html_codegen.dart

Issue 1131143002: Angular workarounds (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase on latest Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/codegen/html_codegen.dart
diff --git a/lib/src/codegen/html_codegen.dart b/lib/src/codegen/html_codegen.dart
index f8641c0d6383eeb2824bbe43ea6cee3238c29957..7eca73f63462ee4786eacd616aa49fb3ebae51e7 100644
--- a/lib/src/codegen/html_codegen.dart
+++ b/lib/src/codegen/html_codegen.dart
@@ -90,7 +90,9 @@ Node _cssInclude(String cssUrl) =>
Node _invokeMain(String mainLibraryName) {
var code = mainLibraryName == null
? 'console.error("dev_compiler error: main was not generated");'
- : '$mainLibraryName.main();';
+ // TODO(vsm): Can we simplify this?
+ // See: https://github.com/dart-lang/dev_compiler/issues/164
+ : '_isolate_helper.startRootIsolate($mainLibraryName.main, []);';
return parseFragment('<script>$code</script>\n');
}

Powered by Google App Engine
This is Rietveld 408576698