stream: don't emit 'finish' after 'error'
An edge case could emit 'finish'
after 'error'
.
Refs: https://github.com/nodejs/node/issues/28710
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines