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