Simon Hausmann 67ee2d085f
fix(napi): panic in JsArrayBufferValue as_ref/as_mut with Rust 1.78 (#2083)
In Rust 1.78, when debug assertions are enabled, slice::from_raw_parts panics if the provided data is a null pointer. This is possible through JsArrayBufferValue::new() as well as through
JsArrayBuffer::into_value, when napi_get_arraybuffer_info returns a null pointer
due to a zero length buffer.
2024-05-06 11:56:58 +08:00
..
2024-04-13 18:55:53 +08:00
2024-04-10 17:03:00 +08:00