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

Function TestStaticMethod

test/objectwrap.cc:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19Napi::Value TestStaticMethod(const Napi::CallbackInfo& info) {
20 std::string str = MaybeUnwrap(info[0].ToString());
21 return Napi::String::New(info.Env(), str + " static");
22}
23
24Napi::Value TestStaticMethodInternal(const Napi::CallbackInfo& info) {
25 std::string str = MaybeUnwrap(info[0].ToString());

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected