Skip to content

changed the way internals are exposed. #47

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

Merged
merged 3 commits into from
Jan 31, 2018

Conversation

Johannes-Schneider
Copy link
Collaborator

@Johannes-Schneider Johannes-Schneider commented Jan 30, 2018

This way is much cleaner, since the variables in the anonymous namespace are no longer there. Furthermore, the internals are no longer const, which enables the user to change them (this is required for almost all v8 methods).
Additionally, the internal getters are now within the node::lib::internal namespace, which indicates that the user has to know what shes doing. (we should provide some more documentation once the PR is merged)

@justus-hildebrand
Copy link
Collaborator

are we sure EventLoopIsRunning() should be part of the internals namespace? Just getting that value shouldn't be too dangerous/"I know what I'm doing"-worthy, right?

@justus-hildebrand justus-hildebrand self-requested a review January 30, 2018 23:19
@Johannes-Schneider Johannes-Schneider merged commit 5539564 into node_lib Jan 31, 2018
@cmfcmf cmfcmf deleted the expose_internals branch January 31, 2018 21:19
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.

4 participants