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

Function CallConstructorWithCStyleArray

test/function.cc:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154Value CallConstructorWithCStyleArray(const CallbackInfo& info) {
155 Function func = info[0].As<Function>();
156 std::vector<napi_value> args;
157 args.reserve(3);
158 args.push_back(info[1]);
159 args.push_back(info[2]);
160 args.push_back(info[3]);
161 return MaybeUnwrap(func.New(args.size(), args.data()));
162}
163
164void IsConstructCall(const CallbackInfo& info) {
165 Function callback = info[0].As<Function>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapFunction · 0.85
NewMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected