mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove global argument from Promise::new_in_current_realm.
This commit is contained in:
parent
f79e1e327d
commit
fca5833e21
30 changed files with 54 additions and 56 deletions
|
@ -239,7 +239,7 @@ impl BlobMethods for Blob {
|
|||
fn Text(&self) -> Rc<Promise> {
|
||||
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<Promise> {
|
||||
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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue