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

Function IsConstructCall

test/function.cc:164–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void IsConstructCall(const CallbackInfo& info) {
165 Function callback = info[0].As<Function>();
166 bool isConstructCall = info.IsConstructCall();
167 callback({Napi::Boolean::New(info.Env(), isConstructCall)});
168}
169
170Value NewTargetCallback(const CallbackInfo& info) {
171 return info.NewTarget();

Callers

nothing calls this directly

Calls 3

callbackFunction · 0.85
IsConstructCallMethod · 0.80
EnvMethod · 0.80

Tested by

no test coverage detected