aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-09-09 15:13:18 -0400
committerJosh Matthews <josh@joshmatthews.net>2015-01-14 12:54:46 -0500
commit159235b3d00fcb1718becf2840186b5fa8f878ce (patch)
tree9c0edaa271ac153741d2bf1345daf4b278c1c292 /components/script/timers.rs
parentdfad8763a846d0ae2e2950a4d78240cbdbc5d541 (diff)
downloadservo-159235b3d00fcb1718becf2840186b5fa8f878ce.tar.gz
servo-159235b3d00fcb1718becf2840186b5fa8f878ce.zip
Add handling for unreported exceptions when invoking callback objects.
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 c9a5495b30d..9c6ec47ffef 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::cell::DOMRefCell;
-use dom::bindings::callback::ExceptionHandling::ReportExceptions;
+use dom::bindings::callback::ExceptionHandling::Report;
use dom::bindings::codegen::Bindings::FunctionBinding::Function;
use dom::bindings::js::JSRef;
use dom::bindings::utils::Reflectable;
@@ -189,7 +189,7 @@ impl TimerManager {
// TODO: Must handle rooting of funval and args when movable GC is turned on
match data.callback {
TimerCallback::FunctionTimerCallback(function) => {
- let _ = function.Call_(this, data.args, ReportExceptions);
+ let _ = function.Call_(this, data.args, Report);
}
TimerCallback::StringTimerCallback(code_str) => {
this.evaluate_js_on_global_with_result(code_str.as_slice());