mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add handling for unreported exceptions when invoking callback objects.
This commit is contained in:
parent
dfad8763a8
commit
159235b3d0
7 changed files with 58 additions and 18 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue