Introduce GlobalScope::get_next_worker_id

This commit is contained in:
Anthony Ramine 2016-09-27 14:07:45 +02:00
parent 38273fe7a8
commit 3e5c0c386c
6 changed files with 17 additions and 32 deletions

View file

@ -57,7 +57,7 @@ impl ServiceWorkerRegistration {
pipeline_id: Some(global.pipeline_id())
};
let worker_id = global.get_next_worker_id();
let worker_id = global.as_global_scope().get_next_worker_id();
let init = prepare_workerscope_init(global, None);
ScopeThings {
script_url: script_url,