aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_module.rs')
-rw-r--r--components/script/script_module.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_module.rs b/components/script/script_module.rs
index adc805cd86f..c6f18733bc1 100644
--- a/components/script/script_module.rs
+++ b/components/script/script_module.rs
@@ -1593,7 +1593,7 @@ pub(crate) fn fetch_external_module_script(
}
#[derive(JSTraceable, MallocSizeOf)]
-#[crown::unrooted_must_root_lint::must_root]
+#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
pub(crate) struct DynamicModuleList {
requests: Vec<RootedTraceableBox<DynamicModule>>,
@@ -1627,7 +1627,7 @@ impl DynamicModuleList {
}
}
-#[crown::unrooted_must_root_lint::must_root]
+#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
#[derive(JSTraceable, MallocSizeOf)]
struct DynamicModule {
#[ignore_malloc_size_of = "Rc is hard"]