Introduce GlobalScope::script_chan

This commit is contained in:
Anthony Ramine 2016-10-04 00:35:16 +02:00
parent 71236e168a
commit a7305b7fc4
4 changed files with 19 additions and 14 deletions

View file

@ -109,7 +109,7 @@ impl Worker {
DedicatedWorkerGlobalScope::run_worker_scope(
init, worker_url, devtools_receiver, worker.runtime.clone(), worker_ref,
global.script_chan(), sender, receiver, worker_load_origin, closing);
global_scope.script_chan(), sender, receiver, worker_load_origin, closing);
Ok(worker)
}