nodejs / abi-stable-node

Repository used by the Node-API team to manage work related to Node-API and node-addon-api
241 stars 34 forks source link

expose garbage collector #316

Open gabrielschulhof opened 6 years ago

gabrielschulhof commented 6 years ago

Sometimes you may wish to trigger garbage collection sooner in order to make finalizer callbacks to be called. This will not necessarily be guaranteed, although attempting it can nevertheless be useful sometimes. (This should also be provided in the "v8" module so that it can be used from JavaScript codes directly, too.)

Re: https://github.com/nodejs/node/issues/14256