aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/task_source/mod.rs')
-rw-r--r--components/script/task_source/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/task_source/mod.rs b/components/script/task_source/mod.rs
index cb607c57acb..bddc4f82173 100644
--- a/components/script/task_source/mod.rs
+++ b/components/script/task_source/mod.rs
@@ -19,6 +19,6 @@ pub trait TaskSource {
-> Result<(), ()>
where T: Runnable + Send + 'static;
fn queue<T: Runnable + Send + 'static>(&self, msg: Box<T>, global: GlobalRef) -> Result<(), ()> {
- self.queue_with_wrapper(msg, &global.get_runnable_wrapper())
+ self.queue_with_wrapper(msg, &global.as_global_scope().get_runnable_wrapper())
}
}