src: make a Environment-independent proxy class for NativeModuleLoader by joyeecheung · Pull Request #27160 · nodejs/node (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation7 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

joyeecheung

This patch splits NativeModuleLoader into two parts - a singleton
that only relies on v8 and node::Mutex and a proxy class for
the singleton (NativeModuleEnv) that provides limited access to
the singleton as well as C++ bindings for the Node.js binary.
NativeModuleLoader is then no longer aware of Environment.

This is split out of #27135

Checklist

@nodejs-github-bot

@nodejs-github-bot nodejs-github-bot added c++

Issues and PRs that require attention from people who are familiar with C++.

lib / src

Issues and PRs related to general changes in the lib or src directory.

labels

Apr 9, 2019

@nodejs-github-bot

addaleax

@nodejs-github-bot

@joyeecheung

@nodejs/process @nodejs/build-files This needs one more review to land - I hope to land this soon so that #27135 can be unblocked.

richardlau

@joyeecheung

This patch splits NativeModuleLoader into two parts - a singleton that only relies on v8 and node::Mutex and a proxy class for the singleton (NativeModuleEnv) that provides limited access to the singleton as well as C++ bindings for the Node.js binary. NativeModuleLoader is then no longer aware of Environment.

@nodejs-github-bot

@nodejs-github-bot

@joyeecheung

joyeecheung added a commit to joyeecheung/node that referenced this pull request

Apr 13, 2019

@joyeecheung

This patch splits NativeModuleLoader into two parts - a singleton that only relies on v8 and node::Mutex and a proxy class for the singleton (NativeModuleEnv) that provides limited access to the singleton as well as C++ bindings for the Node.js binary. NativeModuleLoader is then no longer aware of Environment.

PR-URL: nodejs#27160 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Richard Lau riclau@uk.ibm.com

This was referenced

Apr 23, 2019

Labels

author ready

PRs that have at least one approval, no pending requests for changes, and a CI started.

c++

Issues and PRs that require attention from people who are familiar with C++.

lib / src

Issues and PRs related to general changes in the lib or src directory.