mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Introduce GlobalScope::flush_promise_jobs
This commit is contained in:
parent
44ca9f3d71
commit
6e3be6d894
4 changed files with 16 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue