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

Method Remove

napi-inl.h:7131–7136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7129
7130template <class Hook, class Arg>
7131bool Env::CleanupHook<Hook, Arg>::Remove(BasicEnv env) {
7132 napi_status status = napi_remove_env_cleanup_hook(env, wrapper, data);
7133 delete data;
7134 data = nullptr;
7135 return status == napi_ok;
7136}
7137
7138template <class Hook, class Arg>
7139bool Env::CleanupHook<Hook, Arg>::IsEmpty() const {

Callers 2

removeHookMethod · 0.80
AddHooksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected