Auto merge of #6880 - dzbarsky:rAF, r=jdm

Don't try to unwrap the result of requestAnimationFrame callback



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6880)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-26 08:13:11 -06:00
commit 186c1d14d5
4 changed files with 37 additions and 1 deletions

View file

@ -530,7 +530,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))