Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node): implement libuv APIs needed to support npm:sqlite3 #25893

Merged
merged 17 commits into from
Oct 2, 2024
Prev Previous commit
Next Next commit
Empty destroy
  • Loading branch information
nathanwhit committed Sep 28, 2024
commit 00a5463fddc7e2e5dd3899e486c690387e35c43d
6 changes: 2 additions & 4 deletions cli/napi/uv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ unsafe extern "C" fn uv_mutex_unlock(lock: *mut uv_mutex_t) {
}

#[no_mangle]
unsafe extern "C" fn uv_mutex_destroy(lock: *mut uv_mutex_t) {
unsafe {
std::ptr::drop_in_place(addr_of_mut!((*lock).mutex));
}
unsafe extern "C" fn uv_mutex_destroy(_lock: *mut uv_mutex_t) {
// no cleanup required
}

#[repr(C)]
Expand Down
Loading