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

Function CallWithInvalidReceiver

test/function.cc:132–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132Value CallWithInvalidReceiver(const CallbackInfo& info) {
133 Function func = info[0].As<Function>();
134 return MaybeUnwrapOr(func.Call(Value(), std::initializer_list<napi_value>{}),
135 Value());
136}
137
138Value CallConstructorWithArgs(const CallbackInfo& info) {
139 Function func = info[0].As<Function>();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
CallMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected