Pass InCompartment by value

This commit is contained in:
Aron Zwaan 2019-04-24 22:33:16 +02:00
parent 1b6949d4cf
commit e2e6e2ac94
26 changed files with 52 additions and 50 deletions

View file

@ -98,7 +98,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
let p = Promise::new_in_current_compartment(
&self.global(),
&InCompartment::Already(&in_compartment_proof),
InCompartment::Already(&in_compartment_proof),
);
// Step 1.
@ -134,7 +134,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
let in_compartment_proof = AlreadyInCompartment::assert(&self.global());
let p = Promise::new_in_current_compartment(
&self.global(),
&InCompartment::Already(&in_compartment_proof),
InCompartment::Already(&in_compartment_proof),
);
// Step 1.