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

Function CallWithVectorUsingCppWrapper

test/function.cc:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72Value CallWithVectorUsingCppWrapper(const CallbackInfo& info) {
73 Function func = info[0].As<Function>();
74 std::vector<Value> args;
75 args.reserve(3);
76 args.push_back(info[1]);
77 args.push_back(info[2]);
78 args.push_back(info[3]);
79 return MaybeUnwrap(func.Call(args));
80}
81
82Value CallWithCStyleArray(const CallbackInfo& info) {
83 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