Report `null` pipe options as a rejection
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Like the other invalid `.pipe()` arguments, and like the published version, `null` pipe options now make the returned promise reject instead of throwing synchronously. The destination subprocess is then handled like with an invalid `to` option. Also, the background descendants test cannot hang anymore when the descendant survives, and a test comment now matches which values skip the direction check.
authored by Sindre Sorhus · committed by Sindre Sorhus · parent 698a1b8 · Browse files · 4 files+17 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+17 added−3 removed
- tests:+16 added−2 removed
- other:+1 added−1 removed