aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/fetch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r--components/script/fetch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs
index 634439c7c7d..75d6e3b0848 100644
--- a/components/script/fetch.rs
+++ b/components/script/fetch.rs
@@ -71,7 +71,7 @@ pub fn Fetch(global: GlobalRef, input: RequestOrUSVString, init: &RequestInit) -
// Step 1
let promise = Promise::new(global);
- let response = Response::new(global);
+ let response = Response::new(global.as_global_scope());
// Step 2
let request = match Request::Constructor(global, input, init) {