cucapra / node-llvmc

JavaScript/TypeScript FFI bindings for the LLVM C API
MIT License
12 stars 7 forks source link

Use weak references to automatically free up LLVM resources when wrapper objects are GC'd #4

Open sampsyo opened 6 years ago

sampsyo commented 6 years ago

We should use node-weak, which provides finalizers, to avoid the need for explicit .free() calls in the higher-level interface.