79351361

Date: 2025-01-13 06:55:10
Score: 5.5
Natty: 4
Report link

It seems like the Transform.from() returns a duplex stream rather than a transform stream because the Transform class is a subclass of Duplex class which is where the .from method is being inherited from.

slightly related answer https://stackoverflow.com/a/62008680/9763688

Also, when a new Transform object is instantiated, the error is being captured by the catch block properly similar to using an AsyncGeneratorFunction.

Maybe a duplex stream created from Transform.from() isn't intended to be used in the pipeline function(causing some unexpected behavior; which seems like an incomplete implementation)??

@Ryuollojy if you found the answer, please share it here, thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Ryuollojy
  • Low reputation (1):
Posted by: Subhash Malireddy