mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make PromiseJobQueue::enqueue take a &GlobalScope
This commit is contained in:
parent
6e3be6d894
commit
2ee073053a
3 changed files with 7 additions and 6 deletions
|
@ -2176,7 +2176,7 @@ impl ScriptThread {
|
|||
pub fn enqueue_promise_job(job: EnqueuedPromiseCallback, global: GlobalRef) {
|
||||
SCRIPT_THREAD_ROOT.with(|root| {
|
||||
let script_thread = unsafe { &*root.get().unwrap() };
|
||||
script_thread.promise_job_queue.enqueue(job, global);
|
||||
script_thread.promise_job_queue.enqueue(job, global.as_global_scope());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue