aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 99e294e75e9..d048c07415c 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -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
)
}