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/worker.rs | |
parent | d4fccbace431b003abbc49f2fbc5e8b2de6b3f2a (diff) | |
download | servo-86d2008137f48432ba14aed5009775cfd4dadcc5.tar.gz servo-86d2008137f48432ba14aed5009775cfd4dadcc5.zip |
Introduce GlobalScope::report_an_error
Diffstat (limited to 'components/script/dom/worker.rs')
-rw-r--r-- | components/script/dom/worker.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs index 833675fa1e3..9e590b0f7da 100644 --- a/components/script/dom/worker.rs +++ b/components/script/dom/worker.rs @@ -145,8 +145,8 @@ impl Worker { #[allow(unsafe_code)] fn dispatch_error(&self, error_info: ErrorInfo) { - let global = self.global(); - let event = ErrorEvent::new(global.r().as_global_scope(), + let global = self.global_scope(); + let event = ErrorEvent::new(&global, atom!("error"), EventBubbles::DoesNotBubble, EventCancelable::Cancelable, @@ -161,7 +161,7 @@ impl Worker { return; } - global.r().report_an_error(error_info, unsafe { NullHandleValue }); + global.report_an_error(error_info, unsafe { NullHandleValue }); } } |