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

Method Getter

test/objectwrap.cc:73–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 Napi::Value Getter(const Napi::CallbackInfo& info) {
74 return Napi::String::New(info.Env(), value_);
75 }
76
77 Napi::Value TestMethod(const Napi::CallbackInfo& info) {
78 std::string str = MaybeUnwrap(info[0].ToString());

Callers 2

OwnPropertyGetterMethod · 0.45
CanUnWrapMethod · 0.45

Calls 1

EnvMethod · 0.80

Tested by

no test coverage detected