Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Circular dep that was not needed #441

Closed
wants to merge 1 commit into from

Conversation

frank-dspeed
Copy link

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

Closes: #348
Makes this package able remove circular dep

@@ -57,6 +57,7 @@ require('inherits')(Duplex, Readable);

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