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

Method Getter

test/addon_data.cc:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 };
43
44 static Napi::Value Getter(const Napi::CallbackInfo& info) {
45 return MaybeUnwrap(
46 info.Env().GetInstanceData<Addon>()->VerboseIndicator.New({}));
47 }
48
49 static void Setter(const Napi::CallbackInfo& info) {
50 info.Env().GetInstanceData<Addon>()->verbose = info[0].As<Napi::Boolean>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapFunction · 0.85
NewMethod · 0.80
EnvMethod · 0.80

Tested by

no test coverage detected