bytecodealliance / bytecodealliance/ComponentizeJS
Auto-drop borrows
Đang mở
- Ngôn ngữ chính
- Rust
- Star
- 391
- Fork
- 53
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.