MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / EmptyFunctionFactory

Method EmptyFunctionFactory

napi-inl.h:6205–6209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6203 typename DataType,
6204 void (*CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*)>
6205Napi::Function
6206TypedThreadSafeFunction<ContextType, DataType, CallJs>::EmptyFunctionFactory(
6207 Napi::Env env) {
6208 return Napi::Function::New(env, [](const CallbackInfo& cb) {});
6209}
6210
6211// static
6212template <typename ContextType,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected