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

Function CallConstructorWithVector

test/function.cc:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144Value CallConstructorWithVector(const CallbackInfo& info) {
145 Function func = info[0].As<Function>();
146 std::vector<napi_value> args;
147 args.reserve(3);
148 args.push_back(info[1]);
149 args.push_back(info[2]);
150 args.push_back(info[3]);
151 return MaybeUnwrap(func.New(args));
152}
153
154Value CallConstructorWithCStyleArray(const CallbackInfo& info) {
155 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