bytecodealliance / bytecodealliance/ComponentizeJS
Auto-drop borrows
Ouverte
- Langage dominant
- Rust
- Étoiles
- 391
- Forks
- 53
- Merge moyen
- 3 j 5 h
- PR mergées (30 j)
- 1
Description
In https://github.com/bytecodealliance/jco/pull/262, we now validate all borrows properly.
The need to call `resource[Symbol.dispose]()` explicitly for all functions that take resources seems unnecessary though.
Rather, the implementation should always auto-drop borrows at the bindgen level without requiring the JS user to have to do that explicitly. Explicitly drop calls should instead act as early drops if desired.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.