From 514819f37a12c79c0398863c2ef817c9a4337f56 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 4 Oct 2016 15:36:20 +0200 Subject: Introduce GlobalScope::get_runnable_wrapper --- components/script/task_source/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/task_source/mod.rs') 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(&self, msg: Box, global: GlobalRef) -> Result<(), ()> { - self.queue_with_wrapper(msg, &global.get_runnable_wrapper()) + self.queue_with_wrapper(msg, &global.as_global_scope().get_runnable_wrapper()) } } -- cgit v1.2.3