From 7a8e8bd0ea4a26402e762bf1f380fc8fdff1b321 Mon Sep 17 00:00:00 2001 From: gterzian <2792687+gterzian@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:44:03 +0700 Subject: [PATCH] add must root Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> --- components/script/dom/promise.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/script/dom/promise.rs b/components/script/dom/promise.rs index 9be03a13405..dca5a91b463 100644 --- a/components/script/dom/promise.rs +++ b/components/script/dom/promise.rs @@ -407,9 +407,11 @@ impl FromJSValConvertibleRc for Promise { } } -#[derive(Clone, JSTraceable, MallocSizeOf)] + /// The fulfillment handler for the list of promises in /// . +#[derive(JSTraceable, MallocSizeOf)] +#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)] struct WaitForAllFulfillmentHandler { /// The steps to call when all promises are resolved. #[ignore_malloc_size_of = "Rc is hard"] @@ -461,9 +463,10 @@ impl Callback for WaitForAllFulfillmentHandler { } } -#[derive(Clone, JSTraceable, MallocSizeOf)] /// The rejection handler for the list of promises in /// . +#[derive(Clone, JSTraceable, MallocSizeOf)] +#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)] struct WaitForAllRejectionHandler { /// The steps to call if any promise rejects. #[ignore_malloc_size_of = "Rc is hard"]