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

Method TestMethod

test/objectwrap.cc:77–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 Napi::Value TestMethod(const Napi::CallbackInfo& info) {
78 std::string str = MaybeUnwrap(info[0].ToString());
79 return Napi::String::New(info.Env(), str + " instance");
80 }
81
82 Napi::Value TestMethodInternal(const Napi::CallbackInfo& info) {
83 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