From fca5833e216318c45caabe147ee724cff2daae1c Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 16 Feb 2023 23:22:01 -0500 Subject: Remove global argument from Promise::new_in_current_realm. --- components/script/dom/blob.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/blob.rs') diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index 9845133c42c..451ced6efc3 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -239,7 +239,7 @@ impl BlobMethods for Blob { fn Text(&self) -> Rc { let global = self.global(); let in_realm_proof = AlreadyInRealm::assert(&global); - let p = Promise::new_in_current_realm(&global, InRealm::Already(&in_realm_proof)); + let p = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof)); let id = self.get_blob_url_id(); global.read_file_async( id, @@ -262,7 +262,7 @@ impl BlobMethods for Blob { fn ArrayBuffer(&self) -> Rc { let global = self.global(); let in_realm_proof = AlreadyInRealm::assert(&global); - let p = Promise::new_in_current_realm(&global, InRealm::Already(&in_realm_proof)); + let p = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof)); let id = self.get_blob_url_id(); -- cgit v1.2.3