Merge pull request #1504 from alexcrichton/fix-drop-ref-showing-up

Fix `__wbindgen_object_drop_ref` unnecessary bindings
This commit is contained in:
Alex Crichton 2019-05-01 15:52:50 -05:00 committed by GitHub
commit 8174973c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,7 @@ pub extern fn __wbindgen_anyref_table_dealloc(idx: usize) {
#[no_mangle]
pub unsafe extern fn __wbindgen_drop_anyref_slice(ptr: *mut JsValue, len: usize) {
for slot in slice::from_raw_parts_mut(ptr, len) {
ptr::drop_in_place(slot);
__wbindgen_anyref_table_dealloc(slot.idx as usize);
}
}