mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
0683e9273d
This is a breaking change. https://github.com/dart-lang/sdk/issues/40483 The Process class will now throw a StateError if the process is detached upon accessing the exitCode getter. It now also throws when not connected to the child process's stdio upon accessing the stdin, stdout, and stderr getters. Previously these getters would all return null. The getters in question are meaningless for detached processes and there is no reason to use them in that case. To provide a better experience when Dart becomes null-safe, these getters are changed to throw and never return null, which avoids all legitimate uses of the getters from needing a null check that will never fail. The NNBD migration required making subtle changes to some dart:io semantics in order to provide a better API. This change backports one of these semantic changes to the unmigrated SDK so any issues can be discovered now instead of blocking the future SDK unfork. Change-Id: I776e0dc8bcd517d70332c60dd8ab88db17746aa5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134329 Commit-Queue: Jonas Termansen <sortie@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |