Hi,
I discovered an issue when using classic style streams.
The options, which should include objectMode: true are not defined when creating the PassThrough stream for compatibility with the old style streams.
Therefore, if the old style stream emits anything other than a string/Buffer, this Exception will be thrown:
Hi, I discovered an issue when using classic style streams. The
options
, which should includeobjectMode: true
are not defined when creating thePassThrough
stream for compatibility with the old style streams. Therefore, if the old style stream emits anything other than a string/Buffer, this Exception will be thrown:Added a test to reproduce and a fix.
Thanks!