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

Function CallWithRecvVector

test/function_reference.cc:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71Value CallWithRecvVector(const CallbackInfo& info) {
72 EscapableHandleScope scope(info.Env());
73 FunctionReference ref;
74 std::vector<napi_value> newVec;
75 ref.Reset(info[0].As<Function>());
76
77 for (int i = 2; i < (int)info.Length(); i++) {
78 newVec.push_back(info[i]);
79 }
80 return scope.Escape(MaybeUnwrap(ref.Call(info[1], newVec)));
81}
82
83Value CallWithRecvArgc(const CallbackInfo& info) {
84 EscapableHandleScope scope(info.Env());

Callers

nothing calls this directly

Calls 6

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80
ResetMethod · 0.80
LengthMethod · 0.80
EscapeMethod · 0.80
CallMethod · 0.80

Tested by

no test coverage detected