diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-01 21:00:17 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:35:40 +0200 |
commit | ac5a4adf5fcbab26219b2a3fa31cac037ea8abd5 (patch) | |
tree | 4cd57a638f3e6696f92dc2b71fd9c95abecdea55 /components/script/fetch.rs | |
parent | a8c05c6962849f921bc0aee2d7c3dfa600caec30 (diff) | |
download | servo-ac5a4adf5fcbab26219b2a3fa31cac037ea8abd5.tar.gz servo-ac5a4adf5fcbab26219b2a3fa31cac037ea8abd5.zip |
Make Promise::new take a &GlobalScope
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r-- | components/script/fetch.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs index 75d6e3b0848..bc04a5ecd92 100644 --- a/components/script/fetch.rs +++ b/components/script/fetch.rs @@ -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) { |