mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Pass a &GlobalScope to WebIDL static methods and constructors
This commit is contained in:
parent
1fd470889d
commit
19108aa330
56 changed files with 198 additions and 245 deletions
|
@ -75,7 +75,7 @@ pub fn Fetch(global: GlobalRef, input: RequestOrUSVString, init: &RequestInit) -
|
|||
let response = Response::new(global_scope);
|
||||
|
||||
// Step 2
|
||||
let request = match Request::Constructor(global, input, init) {
|
||||
let request = match Request::Constructor(global_scope, input, init) {
|
||||
Err(e) => {
|
||||
promise.reject_error(promise.global().r().get_cx(), e);
|
||||
return promise;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue