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

Function CallWithReceiverAndCStyleArray

test/function.cc:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92Value CallWithReceiverAndCStyleArray(const CallbackInfo& info) {
93 Function func = info[0].As<Function>();
94 Value receiver = info[1];
95 std::vector<napi_value> args;
96 args.reserve(3);
97 args.push_back(info[2]);
98 args.push_back(info[3]);
99 args.push_back(info[4]);
100 return MaybeUnwrap(func.Call(receiver, args.size(), args.data()));
101}
102
103Value CallWithReceiverAndArgs(const CallbackInfo& info) {
104 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