Closed
Description
Would be useful if streams kept track of what error it emitted if it errored.
For example this would allow async iterators to re-throw errors when creating an iterator to an already destroyed/errored stream.
We already have the _writableState.errorEmitted
which we could re-use to store the error instead of a boolean.