mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make Promise::resolve_native actually sound
We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand.
This commit is contained in:
parent
658dc8a501
commit
5addc2dfa3
17 changed files with 42 additions and 53 deletions
|
@ -167,9 +167,7 @@ impl FetchResponseListener for FetchContext {
|
|||
}
|
||||
}
|
||||
// Step 4.3
|
||||
promise.resolve_native(
|
||||
promise_cx,
|
||||
&self.response_object.root());
|
||||
promise.resolve_native(&self.response_object.root());
|
||||
self.fetch_promise = Some(TrustedPromise::new(promise));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue