stream: Correct bufferedRequestCount in writes
Checklist
-
tests and code linting passes -
a test and/or benchmark is included -
documentation is changed or added -
the commit message follows commit guidelines
Affected core subsystem(s)
stream
Description of change
_writableState.bufferedRequestCount
now gives the correct value if the _write is asynchronous. Fixes #6758 (closed).