mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Pass InCompartment by value
This commit is contained in:
parent
1b6949d4cf
commit
e2e6e2ac94
26 changed files with 52 additions and 50 deletions
|
@ -1024,7 +1024,7 @@ impl TestBindingMethods for TestBinding {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&global);
|
||||
let p = Promise::new_in_current_compartment(
|
||||
&global,
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
);
|
||||
p.append_native_handler(&handler);
|
||||
return p;
|
||||
|
@ -1052,7 +1052,7 @@ impl TestBindingMethods for TestBinding {
|
|||
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
|
||||
Promise::new_in_current_compartment(
|
||||
&self.global(),
|
||||
&InCompartment::Already(&in_compartment_proof),
|
||||
InCompartment::Already(&in_compartment_proof),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue