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

Function Call

test/function_reference.cc:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166Value Call(const CallbackInfo& info) {
167 EscapableHandleScope scope(info.Env());
168 FunctionReference ref;
169 ref.Reset(info[0].As<Function>());
170
171 return scope.Escape(MaybeUnwrapOr(ref.Call({}), Value()));
172}
173
174Value Construct(const CallbackInfo& info) {
175 EscapableHandleScope scope(info.Env());

Callers 2

operator()Method · 0.85
CallMethod · 0.85

Calls 6

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
ResetMethod · 0.80
EscapeMethod · 0.80
CallMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected