From d06bd23351ef659e766fc03b208d68f0d9de89c5 Mon Sep 17 00:00:00 2001 From: HeYunfei Date: Wed, 11 Jan 2023 20:09:39 +0800 Subject: [PATCH] fix(napi): should correctly return while dropping Buffer (#1434) --- crates/napi/src/bindgen_runtime/js_values/buffer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/napi/src/bindgen_runtime/js_values/buffer.rs b/crates/napi/src/bindgen_runtime/js_values/buffer.rs index fea9b151..bd91c4ce 100644 --- a/crates/napi/src/bindgen_runtime/js_values/buffer.rs +++ b/crates/napi/src/bindgen_runtime/js_values/buffer.rs @@ -56,6 +56,7 @@ impl Drop for Buffer { "Call custom GC in ArrayBuffer::drop failed {:?}", Status::from(status) ); + return; } } let mut ref_count = 0;