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

refactor(ext/node): do not prefix private function with _ in node compat JS implementation #26823

Open
kt3k opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@kt3k
Copy link
Member

kt3k commented Nov 12, 2024

In Node compat JS implementation, we generally follow Node.js source code as far as possible, but with _ prefix for private functions in a file (ex. afterConnect in lib/net.js in Node.js becomes _afterConnect in our code base). This _ prefix is confusing for comparing the 2 code bases. So we should remove them.

related: #26661 (comment)

@kt3k kt3k changed the title Do not prefix private function with _ in node compat JS implementation refactor(ext/node): do not prefix private function with _ in node compat JS implementation Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants