Don't try to unwrap the result of requestAnimationFrame callback

This commit is contained in:
David Zbarsky 2015-07-31 16:27:35 -04:00
parent 5bab439ab6
commit b77698a649
6 changed files with 39 additions and 1 deletions

View file

@ -531,7 +531,8 @@ impl<'a> WindowMethods for &'a Window {
let callback = move |now: f64| {
// TODO: @jdm The spec says that any exceptions should be suppressed;
callback.Call__(Finite::wrap(now), ExceptionHandling::Report).unwrap();
// https://github.com/servo/servo/issues/6928
let _ = callback.Call__(Finite::wrap(now), ExceptionHandling::Report);
};
doc.r().request_animation_frame(Box::new(callback))