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

Use snake_case for all local names and parameters #189

Closed
boingoing opened this issue Mar 22, 2017 · 1 comment
Closed

Use snake_case for all local names and parameters #189

boingoing opened this issue Mar 22, 2017 · 1 comment
Assignees

Comments

@boingoing
Copy link

We aren't consistent in naming our locals or parameters with respect to their casing. Node.js, apparently, prefers snake_casing for these.

  if (staticPropertyCount > 0) {
    std::vector<napi_property_descriptor> staticDescriptors;
    staticDescriptors.reserve(staticPropertyCount);

Should become

  if (static_property_count > 0) {
    std::vector<napi_property_descriptor> static_descriptors;
    static_descriptors.reserve(static_property_count);
@boingoing
Copy link
Author

Fixed by #193

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

No branches or pull requests

1 participant