mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Add support for attributes to the inCompartments binding parameter
This commit is contained in:
parent
7dbff6efb7
commit
0b29caa554
3 changed files with 13 additions and 7 deletions
|
@ -1048,11 +1048,10 @@ impl TestBindingMethods for TestBinding {
|
|||
}
|
||||
}
|
||||
|
||||
fn PromiseAttribute(&self) -> Rc<Promise> {
|
||||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
fn PromiseAttribute(&self, comp: InCompartment) -> Rc<Promise> {
|
||||
Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
comp
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue