Store microtask queues in Rc<T>

This commit is contained in:
Anthony Ramine 2017-09-13 10:09:43 +02:00
parent fe29037e89
commit 7f9f95b7ce
3 changed files with 10 additions and 5 deletions

View file

@ -91,7 +91,9 @@ pub struct WorkerGlobalScope {
/// `IpcSender` doesn't exist
from_devtools_receiver: Receiver<DevtoolScriptControlMsg>,
microtask_queue: MicrotaskQueue,
/// https://html.spec.whatwg.org/multipage/#microtask-queue
#[ignore_heap_size_of = "Rc<T> is hard"]
microtask_queue: Rc<MicrotaskQueue>,
navigation_start_precise: f64,
performance: MutNullableJS<Performance>,