Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
static int secret2 = 43;
22
23
class TestClass {
24
public:
25
Env::CleanupHook<void (*)(void* arg), int> hook;
26
27
void removeHook(Env env) { hook.Remove(env); }
28
};
29
30
Value AddHooks(const CallbackInfo& info) {
31
auto env = info.Env();
Callers
1
AddHooks
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected