Hacker News new | ask | show | jobs
by jamii 2612 days ago
If you want to see some examples, Neon uses this pattern to solve a similar problem - preventing rust code from holding onto js objects that might get gced between callbacks.

https://github.com/neon-bindings/neon