Yes I know that these are supposedly "legacy" properties, but setting them to true and never updating them is a bug IMHO.
How else are we supposed to know if any stream has ended/finished without peering into the private _*ableState properties? For example, if you have a function that takes in a Readable stream. If the stream has already ended, it's not like you can attach an end event handler or anything.
Yes I know that these are supposedly "legacy" properties, but setting them to
trueand never updating them is a bug IMHO.How else are we supposed to know if any stream has ended/finished without peering into the private
_*ableStateproperties? For example, if you have a function that takes in a Readable stream. If the stream has already ended, it's not like you can attach anendevent handler or anything.