mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rename a couple of Promise methods
This commit is contained in:
parent
581f0bf09a
commit
658dc8a501
3 changed files with 13 additions and 9 deletions
|
@ -675,13 +675,13 @@ impl TestBindingMethods for TestBinding {
|
|||
#[allow(unrooted_must_root)]
|
||||
#[allow(unsafe_code)]
|
||||
unsafe fn ReturnResolvedPromise(&self, cx: *mut JSContext, v: HandleValue) -> Fallible<Rc<Promise>> {
|
||||
Promise::Resolve(&self.global(), cx, v)
|
||||
Promise::new_resolved(&self.global(), cx, v)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
#[allow(unsafe_code)]
|
||||
unsafe fn ReturnRejectedPromise(&self, cx: *mut JSContext, v: HandleValue) -> Fallible<Rc<Promise>> {
|
||||
Promise::Reject(&self.global(), cx, v)
|
||||
Promise::new_rejected(&self.global(), cx, v)
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue