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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 34c25c40449..b8d2fefc951 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -1005,7 +1005,7 @@ impl TestBindingMethods for TestBinding {
resolve.map(SimpleHandler::new),
reject.map(SimpleHandler::new),
);
- let p = Promise::new_in_current_realm(&global, comp.clone());
+ let p = Promise::new_in_current_realm(comp.clone());
p.append_native_handler(&handler, comp);
return p;
@@ -1028,7 +1028,7 @@ impl TestBindingMethods for TestBinding {
}
fn PromiseAttribute(&self, comp: InRealm) -> Rc<Promise> {
- Promise::new_in_current_realm(&self.global(), comp)
+ Promise::new_in_current_realm(comp)
}
fn AcceptPromise(&self, _promise: &Promise) {}