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

Function CallConstructorWithArgs

test/function.cc:138–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138Value CallConstructorWithArgs(const CallbackInfo& info) {
139 Function func = info[0].As<Function>();
140 return MaybeUnwrap(
141 func.New(std::initializer_list<napi_value>{info[1], info[2], info[3]}));
142}
143
144Value CallConstructorWithVector(const CallbackInfo& info) {
145 Function func = info[0].As<Function>();

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
NewMethod · 0.80

Tested by

no test coverage detected