mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-12 15:16:06 +00:00
Merge pull request #1504 from alexcrichton/fix-drop-ref-showing-up
Fix `__wbindgen_object_drop_ref` unnecessary bindings
This commit is contained in:
commit
8174973c81
@ -201,7 +201,7 @@ pub extern fn __wbindgen_anyref_table_dealloc(idx: usize) {
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern fn __wbindgen_drop_anyref_slice(ptr: *mut JsValue, len: usize) {
|
pub unsafe extern fn __wbindgen_drop_anyref_slice(ptr: *mut JsValue, len: usize) {
|
||||||
for slot in slice::from_raw_parts_mut(ptr, len) {
|
for slot in slice::from_raw_parts_mut(ptr, len) {
|
||||||
ptr::drop_in_place(slot);
|
__wbindgen_anyref_table_dealloc(slot.idx as usize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user