bytecodealliance / jco

JavaScript tooling for working with WebAssembly Components
https://bytecodealliance.github.io/jco/
Apache License 2.0
571 stars 53 forks source link

feat: conditionally support FinalizationRegistry #415

Closed guybedford closed 2 months ago

guybedford commented 2 months ago

In JS environments that do not support the FinalizationRegistry, this conditionally checks that it exists without assuming it when integrating into resource GC disposal.