diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-03 02:26:05 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:35:46 +0200 |
commit | 86d2008137f48432ba14aed5009775cfd4dadcc5 (patch) | |
tree | 079f17c19a61d5c1efea2e7f81be94a63970d4c0 /components/script/dom/bindings/error.rs | |
parent | d4fccbace431b003abbc49f2fbc5e8b2de6b3f2a (diff) | |
download | servo-86d2008137f48432ba14aed5009775cfd4dadcc5.tar.gz servo-86d2008137f48432ba14aed5009775cfd4dadcc5.zip |
Introduce GlobalScope::report_an_error
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r-- | components/script/dom/bindings/error.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs index ed274426bd3..7e0f55d86bf 100644 --- a/components/script/dom/bindings/error.rs +++ b/components/script/dom/bindings/error.rs @@ -8,7 +8,7 @@ use dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMExceptionMethods; use dom::bindings::codegen::PrototypeList::proto_id_to_name; use dom::bindings::conversions::{ConversionResult, FromJSValConvertible, ToJSValConvertible}; use dom::bindings::conversions::root_from_object; -use dom::bindings::global::global_root_from_context; +use dom::bindings::global::global_scope_from_context; use dom::bindings::str::USVString; use dom::domexception::{DOMErrorName, DOMException}; use dom::globalscope::GlobalScope; @@ -246,8 +246,8 @@ pub unsafe fn report_pending_exception(cx: *mut JSContext, dispatch_event: bool) error_info.message); if dispatch_event { - let global = global_root_from_context(cx); - global.r().report_an_error(error_info, value.handle()); + let global = global_scope_from_context(cx); + global.report_an_error(error_info, value.handle()); } } } |