Skip to content

Extend N-API to cover libnode #43516

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.node-apiIssues and PRs related to Node-API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions