fengari icon indicating copy to clipboard operation
fengari copied to clipboard

Attempt to support __gc via weak-napi

Open daurnimator opened this issue 6 years ago • 2 comments

In node, we may be able to support __gc via use of https://github.com/node-ffi-napi/weak-napi

daurnimator avatar Mar 29 '19 03:03 daurnimator

Now that weak references and finalizers are coming to v8 we can hopefully go further with this.

https://v8.dev/features/weak-references

giann avatar Jul 10 '19 05:07 giann

This is apparently in major browsers now as FinalizationRegistry.

s-ol avatar Jan 06 '21 11:01 s-ol