bytecodealliance / bytecodealliance/ComponentizeJS
Auto-drop borrows
Aperta
- Lingua principale
- Rust
- Stelle
- 391
- Fork
- 53
- Merge medio
- 3g 5h
- PR unite (30g)
- 1
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.