diff --git a/crates/napi/src/error.rs b/crates/napi/src/error.rs index db9543e9..3e9a49c4 100644 --- a/crates/napi/src/error.rs +++ b/crates/napi/src/error.rs @@ -44,8 +44,8 @@ impl> ToNapiValue for Error { } } -unsafe impl Send for Error {} -unsafe impl Sync for Error {} +unsafe impl Send for Error where S: Send + AsRef {} +unsafe impl Sync for Error where S: Sync + AsRef {} impl error::Error for Error {}