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

Function TestGetterWithUserData

test/object/object.cc:66–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66Value TestGetterWithUserData(const CallbackInfo& info) {
67 const UserDataHolder* holder = reinterpret_cast<UserDataHolder*>(info.Data());
68 return Number::New(info.Env(), holder->value);
69}
70
71void TestSetterWithUserData(const CallbackInfo& info) {
72 UserDataHolder* holder = reinterpret_cast<UserDataHolder*>(info.Data());

Callers

nothing calls this directly

Calls 2

DataMethod · 0.80
EnvMethod · 0.80

Tested by

no test coverage detected