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

Method Setter

test/objectwrap.cc:69–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void Setter(const Napi::CallbackInfo& /*info*/, const Napi::Value& value) {
70 value_ = MaybeUnwrap(value.ToString());
71 }
72
73 Napi::Value Getter(const Napi::CallbackInfo& info) {
74 return Napi::String::New(info.Env(), value_);

Callers

nothing calls this directly

Calls 1

MaybeUnwrapFunction · 0.85

Tested by

no test coverage detected