mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make Promise::Reject and Resolve take a &GlobalScope
This commit is contained in:
parent
26455b8a67
commit
02d38e74e9
4 changed files with 12 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue