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

Function CallWithCStyleArray

test/function.cc:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82Value CallWithCStyleArray(const CallbackInfo& info) {
83 Function func = info[0].As<Function>();
84 std::vector<napi_value> args;
85 args.reserve(3);
86 args.push_back(info[1]);
87 args.push_back(info[2]);
88 args.push_back(info[3]);
89 return MaybeUnwrap(func.Call(args.size(), args.data()));
90}
91
92Value CallWithReceiverAndCStyleArray(const CallbackInfo& info) {
93 Function func = info[0].As<Function>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapFunction · 0.85
CallMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected