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

Class TestClass

test/env_cleanup.cc:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21static int secret2 = 43;
22
23class TestClass {
24 public:
25 Env::CleanupHook<void (*)(void* arg), int> hook;
26
27 void removeHook(Env env) { hook.Remove(env); }
28};
29
30Value AddHooks(const CallbackInfo& info) {
31 auto env = info.Env();

Callers 1

AddHooksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected