aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index 54b2d3f2519..f3c09505ff9 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -350,7 +350,7 @@ pub enum TimerCallback {
#[derive(JSTraceable, Clone)]
enum InternalTimerCallback {
StringTimerCallback(DOMString),
- FunctionTimerCallback(Rc<Function>, Rc<Vec<Heap<JSVal>>>),
+ FunctionTimerCallback(Rc<Function>, Rc<Box<[Heap<JSVal>]>>),
}
impl HeapSizeOf for InternalTimerCallback {
@@ -392,7 +392,7 @@ impl JsTimers {
for (i, item) in arguments.iter().enumerate() {
args.get_mut(i).unwrap().set(item.get());
}
- InternalTimerCallback::FunctionTimerCallback(function, Rc::new(args))
+ InternalTimerCallback::FunctionTimerCallback(function, Rc::new(args.into_boxed_slice()))
}
};