Make Fetch take a &GlobalScope

This commit is contained in:
Anthony Ramine 2016-10-05 01:48:25 +02:00
parent 144dc62575
commit 1f8bb3a89f
3 changed files with 10 additions and 11 deletions

View file

@ -861,7 +861,7 @@ impl WindowMethods for Window {
#[allow(unrooted_must_root)]
// https://fetch.spec.whatwg.org/#fetch-method
fn Fetch(&self, input: RequestOrUSVString, init: &RequestInit) -> Rc<Promise> {
fetch::Fetch(self.global().r(), input, init)
fetch::Fetch(&self.upcast(), input, init)
}
}