bytecodealliance / bytecodealliance/ComponentizeJS

Auto-drop borrows

Abierto
#72 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
391
Forks
53
Merge medio
3 d 5 h
PR fusionados (30 d)
1

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.