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

Function InitObjectWrap

test/objectwrap.cc:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286std::string Test::s_staticMethodText;
287
288Napi::Object InitObjectWrap(Napi::Env env) {
289 testStaticContextRef = Napi::Persistent(Napi::Object::New(env));
290 testStaticContextRef.SuppressDestruct();
291
292 Napi::Object exports = Napi::Object::New(env);
293 Test::Initialize(env, exports);
294 return exports;
295}

Callers 1

InitFunction · 0.85

Calls 2

PersistentFunction · 0.85
SuppressDestructMethod · 0.80

Tested by

no test coverage detected