diff --git a/crates/napi/src/bindgen_runtime/js_values/either.rs b/crates/napi/src/bindgen_runtime/js_values/either.rs index 2574b10a..21f3518c 100644 --- a/crates/napi/src/bindgen_runtime/js_values/either.rs +++ b/crates/napi/src/bindgen_runtime/js_values/either.rs @@ -17,6 +17,8 @@ impl< B: TypeName + FromNapiValue + ToNapiValue + NapiRaw, > Either { + /// # Safety + /// Backward compatible with `Either` in **v1** pub unsafe fn raw(&self) -> napi_sys::napi_value { match &self { Self::A(a) => a.raw(),