diff --git a/mozjs/src/gc/root.rs b/mozjs/src/gc/root.rs index 67276bf3c4..3f23e6035f 100644 --- a/mozjs/src/gc/root.rs +++ b/mozjs/src/gc/root.rs @@ -184,7 +184,7 @@ impl<'a, T> MutableHandle<'a, T> { unsafe { Handle::new(&*self.ptr) } } - pub fn new(ptr: &'a mut T) -> Self { + pub(crate) fn new(ptr: &'a mut T) -> Self { Self { ptr, anchor: PhantomData,