Introduce GlobalScope::flush_promise_jobs

This commit is contained in:
Anthony Ramine 2016-10-04 16:00:40 +02:00
parent 44ca9f3d71
commit 6e3be6d894
4 changed files with 16 additions and 13 deletions

View file

@ -142,7 +142,7 @@ impl PromiseJobQueue {
self.promise_job_queue.borrow_mut().push(job);
if !self.pending_promise_job_runnable.get() {
self.pending_promise_job_runnable.set(true);
global.flush_promise_jobs();
global.as_global_scope().flush_promise_jobs();
}
}