mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove unused argument from AlreadyInRealm::assert.
This commit is contained in:
parent
fca5833e21
commit
5e5669b945
8 changed files with 10 additions and 12 deletions
|
@ -718,8 +718,7 @@ impl Callback for ConsumeBodyPromiseHandler {
|
|||
// https://fetch.spec.whatwg.org/#concept-body-consume-body
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn consume_body<T: BodyMixin + DomObject>(object: &T, body_type: BodyType) -> Rc<Promise> {
|
||||
let global = object.global();
|
||||
let in_realm_proof = AlreadyInRealm::assert(&global);
|
||||
let in_realm_proof = AlreadyInRealm::assert();
|
||||
let promise =
|
||||
Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue