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

Unified Diff: runtime/bin/main.cc

Issue 296713005: Do not Dart_RunLoop if --load_async=false. This allows the program to run to the end with --pause-i… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
===================================================================
--- runtime/bin/main.cc (revision 36586)
+++ runtime/bin/main.cc (working copy)
@@ -547,8 +547,10 @@
result = DartUtils::LoadScript(isolate_data->script_url, builtin_lib);
CHECK_RESULT(result);
- result = Dart_RunLoop();
- CHECK_RESULT(result);
+ if (Dart_IsVMFlagSet("load_async")) {
+ result = Dart_RunLoop();
+ CHECK_RESULT(result);
+ }
Platform::SetPackageRoot(package_root);
Dart_Handle io_lib_url = DartUtils::NewString(DartUtils::kIOLibURL);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698