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

Function StaticSetter

test/objectwrap.cc:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10void StaticSetter(const Napi::CallbackInfo& /*info*/,
11 const Napi::Value& value) {
12 testStaticContextRef.Value().Set("value", value);
13}
14
15void StaticMethodVoidCb(const Napi::CallbackInfo& info) {
16 StaticSetter(info, info[0].As<Napi::Number>());

Callers 1

StaticMethodVoidCbFunction · 0.85

Calls 2

SetMethod · 0.80
ValueMethod · 0.80

Tested by

no test coverage detected