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

Function FourArgFunction_Core

benchmark/function_args.cc:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static napi_value FourArgFunction_Core(napi_env env, napi_callback_info info) {
43 size_t argc = 4;
44 napi_value argv[4];
45 if (napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr) != napi_ok) {
46 return nullptr;
47 }
48 (void)argv[0];
49 (void)argv[1];
50 (void)argv[2];
51 (void)argv[3];
52 return nullptr;
53}
54
55static void NoArgFunction(const Napi::CallbackInfo& info) {
56 (void)info;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected