mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make Promise::new take a &GlobalScope
This commit is contained in:
parent
a8c05c6962
commit
ac5a4adf5f
5 changed files with 11 additions and 9 deletions
|
@ -70,8 +70,9 @@ pub fn Fetch(global: GlobalRef, input: RequestOrUSVString, init: &RequestInit) -
|
|||
let core_resource_thread = global.core_resource_thread();
|
||||
|
||||
// Step 1
|
||||
let promise = Promise::new(global);
|
||||
let response = Response::new(global.as_global_scope());
|
||||
let global_scope = global.as_global_scope();
|
||||
let promise = Promise::new(global_scope);
|
||||
let response = Response::new(global_scope);
|
||||
|
||||
// Step 2
|
||||
let request = match Request::Constructor(global, input, init) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue