- Version: v12.16.0
- Platform: MacOS
- Subsystem: Darwin ... 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
What steps will reproduce the bug?
// open the node replx=newstream.Duplex({writableObjectMode: true})x.writableObjectMode// undefined - should be truebut the mode is set correctly:
...
_writableState: WritableState{objectMode: true,
...it does work on a Writable stream:
x=newstream.Writable({objectMode: true})x.writableObjectMode// trueHow often does it reproduce? Is there a required condition?
100%
What is the expected behavior?
Return the actual value of whether the stream is in object mode.
What steps will reproduce the bug?
but the mode is set correctly:
it does work on a Writable stream:
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior?
Return the actual value of whether the stream is in object mode.