Skip to content

Commit

Permalink
[nnbd] Fix Process.stderr providing stdout instead in NNBD dart:io.
Browse files Browse the repository at this point in the history
Bug: dart-lang/sdk#40040
Change-Id: Ia318180de1b1614502671c6bf4051d79ae7808f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134327
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
  • Loading branch information
sortie authored and commit-bot@chromium.org committed Feb 7, 2020
1 parent a01dda1 commit 7704b83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk_nnbd/lib/_internal/vm/bin/process_patch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,12 @@ class _ProcessImpl extends _ProcessImplNativeWrapper implements Process {
_NativeSocket exitHandler) native "Process_Wait";

Stream<List<int>> get stdout =>
_stdout ?? (throw StateError("Process is detached"));
_stdout ?? (throw StateError("stdio is not connected"));

Stream<List<int>> get stderr =>
_stdout ?? (throw StateError("Process is detached"));
_stderr ?? (throw StateError("stdio is not connected"));

IOSink get stdin => _stdin ?? (throw StateError("Process is detached"));
IOSink get stdin => _stdin ?? (throw StateError("stdio is not connected"));

Future<int> get exitCode =>
_exitCode?.future ?? (throw StateError("Process is detached"));
Expand Down

0 comments on commit 7704b83

Please sign in to comment.