MCPcopy 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

IsEmptyMethod · 0.80
CallMethod · 0.80
UnrefMethod · 0.80

Tested by

no test coverage detected