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

Function CallWithVector

test/function.cc:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62Value CallWithVector(const CallbackInfo& info) {
63 Function func = info[0].As<Function>();
64 std::vector<napi_value> args;
65 args.reserve(3);
66 args.push_back(info[1]);
67 args.push_back(info[2]);
68 args.push_back(info[3]);
69 return MaybeUnwrap(func.Call(args));
70}
71
72Value CallWithVectorUsingCppWrapper(const CallbackInfo& info) {
73 Function func = info[0].As<Function>();

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
CallMethod · 0.80

Tested by

no test coverage detected