aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/finalize.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings/finalize.rs')
-rw-r--r--components/script_bindings/finalize.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script_bindings/finalize.rs b/components/script_bindings/finalize.rs
index fa1079b5624..46fbc83c965 100644
--- a/components/script_bindings/finalize.rs
+++ b/components/script_bindings/finalize.rs
@@ -30,7 +30,7 @@ unsafe fn do_finalize_global(obj: *mut JSObject) {
/// # Safety
/// `this` must point to a valid, non-null instance of T.
-pub unsafe fn finalize_common<T>(this: *const T) {
+pub(crate) unsafe fn finalize_common<T>(this: *const T) {
if !this.is_null() {
// The pointer can be null if the object is the unforgeable holder of that interface.
let _ = Box::from_raw(this as *mut T);
@@ -41,7 +41,7 @@ pub unsafe fn finalize_common<T>(this: *const T) {
/// # Safety
/// `obj` must point to a valid, non-null JS object.
/// `this` must point to a valid, non-null instance of T.
-pub unsafe fn finalize_global<T>(obj: *mut JSObject, this: *const T) {
+pub(crate) unsafe fn finalize_global<T>(obj: *mut JSObject, this: *const T) {
do_finalize_global(obj);
finalize_common::<T>(this);
}
@@ -49,7 +49,7 @@ pub unsafe fn finalize_global<T>(obj: *mut JSObject, this: *const T) {
/// # Safety
/// `obj` must point to a valid, non-null JS object.
/// `this` must point to a valid, non-null instance of T.
-pub unsafe fn finalize_weak_referenceable<T: WeakReferenceable>(
+pub(crate) unsafe fn finalize_weak_referenceable<T: WeakReferenceable>(
obj: *mut JSObject,
this: *const T,
) {