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

Unified Diff: mojo/dart/embedder/dart_controller.cc

Issue 850963003: Dart: Updates Dart VM revision. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « mojo/dart/embedder/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/dart_controller.cc
diff --git a/mojo/dart/embedder/dart_controller.cc b/mojo/dart/embedder/dart_controller.cc
index 7ab36a006f809ddd0fc42da6d3acc5c5df8e8c30..12881e2ce8958395f8d5a7119ce8e38e1793857f 100644
--- a/mojo/dart/embedder/dart_controller.cc
+++ b/mojo/dart/embedder/dart_controller.cc
@@ -371,7 +371,7 @@ void DartController::InitVmIfNeeded(Dart_EntropySource entropy,
return;
}
- const int kNumArgs = arguments_count + 2;
+ const int kNumArgs = arguments_count + 1;
const char* args[kNumArgs];
// TODO(zra): Fix Dart VM Shutdown race.
@@ -383,11 +383,8 @@ void DartController::InitVmIfNeeded(Dart_EntropySource entropy,
// that isn't there anymore.
args[0] = "--worker-timeout-millis=0";
- // Enable async/await features.
- args[1] = "--enable-async";
-
for (int i = 0; i < arguments_count; ++i) {
- args[i + 2] = arguments[i];
+ args[i + 1] = arguments[i];
}
bool result = Dart_SetVMFlags(kNumArgs, args);
« no previous file with comments | « mojo/dart/embedder/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698