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

Function CallJS

test/threadsafe_function/threadsafe_function_exception.cc:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace {
10
11void CallJS(napi_env env, napi_value /* callback */, void* /*data*/) {
12 Napi::Error error = Napi::Error::New(env, "test-from-native");
13 NAPI_THROW_VOID(error);
14}
15
16void TestCall(const CallbackInfo& info) {
17 Napi::Env env = info.Env();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected