Pass a &GlobalScope to WebIDL static methods and constructors

This commit is contained in:
Anthony Ramine 2016-10-04 00:54:05 +02:00
parent 1fd470889d
commit 19108aa330
56 changed files with 198 additions and 245 deletions

View file

@ -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;