diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-05 09:40:04 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:35:55 +0200 |
commit | cdf3ef05e78b3947cc7f29240106982f1c45d96b (patch) | |
tree | 37dbe8cb8bf171835444a0ace5d6607672c512aa /components/script/dom/xmlhttprequest.rs | |
parent | 1f8bb3a89f50f4edf5d37f6d7c4c9d1480876753 (diff) | |
download | servo-cdf3ef05e78b3947cc7f29240106982f1c45d96b.tar.gz servo-cdf3ef05e78b3947cc7f29240106982f1c45d96b.zip |
Introduce GlobalScope::new_script_pair
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index 7a586cfe6a1..e8254be3e70 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -1297,7 +1297,7 @@ impl XMLHttpRequest { let global_scope = global.as_global_scope(); let (script_chan, script_port) = if self.sync.get() { - let (tx, rx) = global.new_script_pair(); + let (tx, rx) = global_scope.new_script_pair(); (tx, Some(rx)) } else { (global_scope.networking_task_source(), None) |