You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
guybedford
changed the title
Auto-drop borrows, define Symbol.dispose
Auto-drop borrows
Mar 19, 2024
In bytecodealliance/jco#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.
The text was updated successfully, but these errors were encountered: