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

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 onto 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
« no previous file with comments | « lib/runtime/dart_runtime.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/html_codegen.dart
diff --git a/lib/src/codegen/html_codegen.dart b/lib/src/codegen/html_codegen.dart
index b70f79e64c461f87e54c581662ecd268de4d6b82..4f1c7349d0813cdef89d45af2d4892a1fffc38d8 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');
}
« no previous file with comments | « lib/runtime/dart_runtime.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698