fix(napi): should correctly return while dropping Buffer (#1434)

This commit is contained in:
HeYunfei 2023-01-11 20:09:39 +08:00 committed by GitHub
parent dc3a4c9f25
commit d06bd23351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,7 @@ impl Drop for Buffer {
"Call custom GC in ArrayBuffer::drop failed {:?}",
Status::from(status)
);
return;
}
}
let mut ref_count = 0;