Skip to content

Conversation

@blahah
Copy link

@blahah blahah commented Jun 5, 2025

In bare context if a PassThrough instance is created it requires its own constructor. Without it the error:

PassThrough is not a constructor

is thrown.

This allows streamx to be compatible with node modules using PassThrough in this way (without changing the actual behaviour of the code itself).

In bare context if a PassThrough instance is created it requires its own constructor.
@mafintosh
Copy link
Owner

strange have never heard about that. do you have a test case i can add for good meassure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants