Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node-addon-api
/ Finalize
Method
Finalize
test/objectwrap.cc:268–275 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
266
}
267
268
void Finalize(Napi::Env env) {
269
if (finalizeCb_.IsEmpty()) {
270
return;
271
}
272
273
finalizeCb_.Call(env.Global(), {Napi::Boolean::New(env, true)});
274
finalizeCb_.Unref();
275
}
276
277
private:
278
std::string value_;
Callers
nothing calls this directly
Calls
3
IsEmpty
Method · 0.80
Call
Method · 0.80
Unref
Method · 0.80
Tested by
no test coverage detected