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.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 402a76687e4..2c91ce7fac5 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -1013,6 +1013,7 @@ impl TestBindingMethods for TestBinding {
resolve: Option<Rc<SimpleCallback>>,
reject: Option<Rc<SimpleCallback>>,
comp: InRealm,
+ can_gc: CanGc,
) -> Rc<Promise> {
let global = self.global();
let handler = PromiseNativeHandler::new(
@@ -1020,8 +1021,8 @@ impl TestBindingMethods for TestBinding {
resolve.map(SimpleHandler::new_boxed),
reject.map(SimpleHandler::new_boxed),
);
- let p = Promise::new_in_current_realm(comp);
- p.append_native_handler(&handler, comp);
+ let p = Promise::new_in_current_realm(comp, can_gc);
+ p.append_native_handler(&handler, comp, can_gc);
return p;
#[derive(JSTraceable, MallocSizeOf)]
@@ -1042,8 +1043,8 @@ impl TestBindingMethods for TestBinding {
}
}
- fn PromiseAttribute(&self, comp: InRealm) -> Rc<Promise> {
- Promise::new_in_current_realm(comp)
+ fn PromiseAttribute(&self, comp: InRealm, can_gc: CanGc) -> Rc<Promise> {
+ Promise::new_in_current_realm(comp, can_gc)
}
fn AcceptPromise(&self, _promise: &Promise) {}