Skip to content

Conversation

frank-dspeed
Copy link

@frank-dspeed frank-dspeed commented Aug 22, 2020

Closes: #348
Makes this package able remove circular dep


function Duplex(options) {
if (!(this instanceof Duplex)) return new Duplex(options);
this.isDuplex = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can just add public properties like that... would at least need to be behind a symbol

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain any reason for that? I do not see a case where i can not simply place that i will refactor that but i do not see why we should not be able to place it after we made sure we are called with new we are sure that this is a instance and i am 100% sure that no novice developer will mess with that propertie

and if he does it is up to him it still has no down side for this

@ronag
Copy link
Member

ronag commented Aug 22, 2020

If you want this fixed I think you would first need to open a PR against the node core repo, https://github.com/nodejs/node. Please the discussion in #348.

@vweevers
Copy link
Contributor

Closing in favor of upstream PR: nodejs/node#35239. Follow #348 for further progress. Thanks for contributing!

@vweevers vweevers closed this Sep 19, 2020
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.

Circular dependencies (prevents proper rollup)

3 participants