Skip to content

doc: modified docs to reflect how to invoke gc on Wrapping C++ objects

Currently the documentation for Wrapping C++ Objects doesn't explain how to destruct an object by explicitly invoking the garbage collector. This commit includes a modification to docs which explains how to invoke garbage collector to delete an object by executing its destructor.

Fixes: https://github.com/nodejs/node/issues/19876

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading