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

Unified Diff: sdk/lib/_internal/pub/lib/src/command/run.dart

Issue 514853003: Hook async/await compiler into pub and use it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise! Created 6 years, 4 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 | « sdk/lib/_internal/pub/lib/src/command/global_run.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/command/run.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/run.dart b/sdk/lib/_internal/pub/lib/src/command/run.dart
index 9881b6de19fa273d0f41797ff47e3ba4a3c4b5ed..45c0931a3fb324b029f31a71b4b8a713c1bf2adb 100644
--- a/sdk/lib/_internal/pub/lib/src/command/run.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/run.dart
@@ -19,7 +19,7 @@ class RunCommand extends PubCommand {
"NOTE: We are currently optimizing this command's startup time.";
String get usage => "pub run <executable> [args...]";
- Future onRun() {
+ Future onRun() async {
if (commandOptions.rest.isEmpty) {
usageError("Must specify an executable to run.");
}
@@ -36,7 +36,8 @@ class RunCommand extends PubCommand {
executable = components[1];
}
- return runExecutable(this, entrypoint, package, executable, args)
- .then(flushThenExit);
+ var exitCode = await runExecutable(this, entrypoint, package, executable,
+ args);
+ await flushThenExit(exitCode);
}
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command/global_run.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698