| Index: lib/src/executable.dart
|
| diff --git a/lib/src/executable.dart b/lib/src/executable.dart
|
| index 83880392dfb02f8828d8215ebf3cc4636735d506..7f9a9ae22902c2fa591fe7c8c96dd9e2e49dd3a8 100644
|
| --- a/lib/src/executable.dart
|
| +++ b/lib/src/executable.dart
|
| @@ -141,7 +141,10 @@ Future<int> runExecutable(Entrypoint entrypoint, String package,
|
| process.stdout.listen(stdout.add);
|
| stdin.listen(process.stdin.add);
|
|
|
| - return process.exitCode;
|
| + // Work around dart-lang/sdk#25348.
|
| + process.stdin.done.catchError((_) {});
|
| +
|
| + return await process.exitCode;
|
| }
|
|
|
| /// Returns the URL the VM should use to load the executable at [path].
|
|
|