#[macro_export] macro_rules! impl_napi_error_from { ($a:ty) => { #[cfg(feature = "napi")] impl From<$a> for napi::Error { fn from(reason: $a) -> napi::Error { napi::Error::from_reason(reason.to_string()) } } }; }