Skip to content

Commit

Permalink
fix: OwnedJsValue should not be Send+Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Icemic committed Jul 7, 2024
1 parent e89081e commit 8e38cdf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/value/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ pub struct OwnedJsValue {
pub(crate) value: q::JSValue,
}

unsafe impl Send for OwnedJsValue {}
unsafe impl Sync for OwnedJsValue {}

impl PartialEq for OwnedJsValue {
fn eq(&self, other: &Self) -> bool {
unsafe { q::JS_VALUE_GET_PTR(self.value) == q::JS_VALUE_GET_PTR(other.value) }
Expand Down

0 comments on commit 8e38cdf

Please sign in to comment.