aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-05 01:14:46 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:54 +0200
commit02d38e74e90dd06f9083731a5101ad6b05be20dc (patch)
treecb646c0d496c7ba07a3b4f010142a9774c70e41d /components/script/dom/testbinding.rs
parent26455b8a67771ff82ce70f21b131d452518e0c50 (diff)
downloadservo-02d38e74e90dd06f9083731a5101ad6b05be20dc.tar.gz
servo-02d38e74e90dd06f9083731a5101ad6b05be20dc.zip
Make Promise::Reject and Resolve take a &GlobalScope
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 bc7c5643533..8362daa0d12 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -656,12 +656,12 @@ impl TestBindingMethods for TestBinding {
#[allow(unrooted_must_root)]
fn ReturnResolvedPromise(&self, cx: *mut JSContext, v: HandleValue) -> Fallible<Rc<Promise>> {
- Promise::Resolve(self.global().r(), cx, v)
+ Promise::Resolve(&self.global_scope(), cx, v)
}
#[allow(unrooted_must_root)]
fn ReturnRejectedPromise(&self, cx: *mut JSContext, v: HandleValue) -> Fallible<Rc<Promise>> {
- Promise::Reject(self.global().r(), cx, v)
+ Promise::Reject(&self.global_scope(), cx, v)
}
fn PromiseResolveNative(&self, cx: *mut JSContext, p: &Promise, v: HandleValue) {