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); |