MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / GetValue

Method GetValue

test/function_reference.cc:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 Napi::Value GetValue(const Napi::CallbackInfo& info) {
22 int value = this->_value;
23 return Napi::Number::New(info.Env(), value);
24 }
25
26 private:
27 int _value;

Callers

nothing calls this directly

Calls 1

EnvMethod · 0.80

Tested by

no test coverage detected