diff --git a/core/engine/src/value/conversions/convert.rs b/core/engine/src/value/conversions/convert.rs index ea92b23943..a73344d685 100644 --- a/core/engine/src/value/conversions/convert.rs +++ b/core/engine/src/value/conversions/convert.rs @@ -7,9 +7,10 @@ //! if necessary). use boa_engine::JsNativeError; +use boa_gc::{Finalize, Trace}; use crate::value::TryFromJs; -use crate::{Context, JsResult, JsString, JsValue}; +use crate::{Context, JsData, JsResult, JsString, JsValue}; /// A wrapper type that allows converting a `JsValue` to a specific type. /// This is useful when you want to convert a `JsValue` to a Rust type. @@ -42,7 +43,7 @@ use crate::{Context, JsResult, JsString, JsValue}; /// assert_eq!(conv5, true); /// assert_eq!(conv_nan, false); /// ``` -#[derive(Debug, Clone, Copy, PartialEq, Eq)] +#[derive(Debug, Clone, PartialEq, Eq, Trace, Finalize, JsData)] pub struct Convert(pub T); impl From for Convert {