diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-09-27 14:07:45 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 20:59:10 +0200 |
commit | 3e5c0c386c425e51067038228561e78d10c80a53 (patch) | |
tree | af205e63a1b3f7c582176e2a9268dd71b1ebd36b /components/script/dom/worker.rs | |
parent | 38273fe7a83313649384a6f265ee9ab816287b18 (diff) | |
download | servo-3e5c0c386c425e51067038228561e78d10c80a53.tar.gz servo-3e5c0c386c425e51067038228561e78d10c80a53.zip |
Introduce GlobalScope::get_next_worker_id
Diffstat (limited to 'components/script/dom/worker.rs')
-rw-r--r-- | components/script/dom/worker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs index 9c43f1c148d..1e32b4375f1 100644 --- a/components/script/dom/worker.rs +++ b/components/script/dom/worker.rs @@ -91,7 +91,7 @@ impl Worker { }; let (devtools_sender, devtools_receiver) = ipc::channel().unwrap(); - let worker_id = global.get_next_worker_id(); + let worker_id = global.as_global_scope().get_next_worker_id(); if let Some(ref chan) = global.devtools_chan() { let pipeline_id = global.pipeline_id(); let title = format!("Worker for {}", worker_url); |