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

Method Init

test/addon_data.cc:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 static Napi::FunctionReference Init(Napi::Env env) {
36 return Napi::Persistent(DefineClass(
37 env,
38 "VerboseIndicator",
39 {InstanceAccessor<&VerboseIndicator::Getter,
40 &VerboseIndicator::Setter>("verbose")}));
41 }
42 };
43
44 static Napi::Value Getter(const Napi::CallbackInfo& info) {

Callers

nothing calls this directly

Calls 1

PersistentFunction · 0.85

Tested by

no test coverage detected