aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r--components/script/script_runtime.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs
index a93dbd5bbf8..45e8b9aa716 100644
--- a/components/script/script_runtime.rs
+++ b/components/script/script_runtime.rs
@@ -233,7 +233,7 @@ unsafe extern "C" fn enqueue_promise_job(
result
}
-#[allow(unsafe_code, unrooted_must_root)]
+#[allow(unsafe_code, crown::unrooted_must_root)]
/// https://html.spec.whatwg.org/multipage/#the-hostpromiserejectiontracker-implementation
unsafe extern "C" fn promise_rejection_tracker(
cx: *mut RawJSContext,
@@ -311,7 +311,7 @@ unsafe extern "C" fn promise_rejection_tracker(
})
}
-#[allow(unsafe_code, unrooted_must_root)]
+#[allow(unsafe_code, crown::unrooted_must_root)]
/// https://html.spec.whatwg.org/multipage/#notify-about-rejected-promises
pub fn notify_about_rejected_promises(global: &GlobalScope) {
let cx = GlobalScope::get_cx();