-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.
Description
What is the problem this feature will solve?
Currently when using libnode one has to use raw V8 primitives or to manually construct a napi_env by including node_api_internals.h which is normally not exported and has other internal dependencies.
What is the feature you are proposing to solve the problem?
Add a N-API primitive for creating a Node environment (the code in embedtest.cc) that constructs a napi_env
What alternatives have you considered?
- Using raw V8 primitives - very impractical and not portable
- Including
node_api_internals.hand manually constructing anapi_env- requires access to Node internal structures that are normally not exported
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.node-apiIssues and PRs related to the Node-API.Issues and PRs related to the Node-API.