Skip to content

Extend N-API to cover libnode #43516

Closed
Closed
@mmomtchev

Description

@mmomtchev

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.h and manually constructing a napi_env - requires access to Node internal structures that are normally not exported

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.node-apiIssues and PRs related to the Node-API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions