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

Function InitFunctionReference

test/function_reference.cc:183–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181} // namespace
182
183Object InitFunctionReference(Env env) {
184 Object exports = Object::New(env);
185 exports["CreateFuncRefWithNew"] =
186 Function::New(env, CreateFunctionReferenceUsingNew);
187 exports["CreateFuncRefWithNewVec"] =
188 Function::New(env, CreateFunctionReferenceUsingNewVec);
189 exports["CallWithRecvArgc"] = Function::New(env, CallWithRecvArgc);
190 exports["CallWithRecvVector"] = Function::New(env, CallWithRecvVector);
191 exports["CallWithRecvInitList"] = Function::New(env, CallWithRecvInitList);
192 exports["CallWithInitList"] = Function::New(env, CallWithInitList);
193 exports["CallWithVec"] = Function::New(env, CallWithVectorArgs);
194 exports["ConstructWithMove"] =
195 Function::New(env, ConstructRefFromExisitingRef);
196 exports["AsyncCallWithInitList"] =
197 Function::New(env, MakeAsyncCallbackWithInitList);
198 exports["AsyncCallWithVector"] =
199 Function::New(env, MakeAsyncCallbackWithVector);
200 exports["AsyncCallWithArgv"] = Function::New(env, MakeAsyncCallbackWithArgv);
201 exports["call"] = Function::New(env, Call);
202 exports["construct"] = Function::New(env, Construct);
203
204 return exports;
205}

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected