-
Notifications
You must be signed in to change notification settings - Fork 0
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
Expose Internals #41
Expose Internals #41
Conversation
src/node_lib.h
Outdated
bool EventLoopIsRunning() { return _event_loop_running; } | ||
const bool EventLoopIsRunning() { return _event_loop_running; } | ||
|
||
const v8::Isolate* Isolate() { return _isolate; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, is there a reason you did not name this getIsolate()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like isolate
would be correct: https://github.com/nodejs/node/blob/master/CPP_STYLE_GUIDE.md#camelcase-for-methods-functions-and-classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now fixed merge conflicts and renamed the getter. Would be great if someone else could look at it and merge it.
Extracted important internal members to node_lib.h and exposed them via getter methods.
closes #32