diff options
author | David Zbarsky <dzbarsky@gmail.com> | 2015-07-31 16:27:35 -0400 |
---|---|---|
committer | David Zbarsky <dzbarsky@gmail.com> | 2015-08-20 13:27:11 -0400 |
commit | b77698a649984d870cdbe638e381cc89c68f530f (patch) | |
tree | ddd00bffe589ba3c601db3c561467f75ca18832c /components/script | |
parent | 5bab439ab6c58a5b78a6c2f69d6e93ad80da560f (diff) | |
download | servo-b77698a649984d870cdbe638e381cc89c68f530f.tar.gz servo-b77698a649984d870cdbe638e381cc89c68f530f.zip |
Don't try to unwrap the result of requestAnimationFrame callback
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/window.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index ae9a0500c9e..bfac8638c90 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -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)) |