MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / Init

Method Init

napi-inl.h:7057–7061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7055
7056template <typename T>
7057inline Object Addon<T>::Init(Env env, Object exports) {
7058 T* addon = new T(env, exports);
7059 env.SetInstanceData(addon);
7060 return addon->entry_point_;
7061}
7062
7063template <typename T>
7064inline T* Addon<T>::Unwrap(Object wrapper) {

Callers

nothing calls this directly

Calls 1

SetInstanceDataMethod · 0.80

Tested by

no test coverage detected