aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/global.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-09-05 18:02:14 +0200
committerMs2ger <Ms2ger@gmail.com>2016-09-09 09:03:09 +0200
commit60142f87e27c84e06380e78b683ad4da2ab80f4f (patch)
treed2c34b3792be4bc79e3adc46dfdf3f85fe59a60b /components/script/dom/bindings/global.rs
parent59cf735f856154e14cd427a93b25a0d7e86c563c (diff)
downloadservo-60142f87e27c84e06380e78b683ad4da2ab80f4f.tar.gz
servo-60142f87e27c84e06380e78b683ad4da2ab80f4f.zip
Implement error reporting for workers.
Fixes #3311. Fixes #13158.
Diffstat (limited to 'components/script/dom/bindings/global.rs')
-rw-r--r--components/script/dom/bindings/global.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/global.rs b/components/script/dom/bindings/global.rs
index 118f04a3c7d..dd03554217d 100644
--- a/components/script/dom/bindings/global.rs
+++ b/components/script/dom/bindings/global.rs
@@ -284,7 +284,7 @@ impl<'a> GlobalRef<'a> {
pub fn report_an_error(&self, error_info: ErrorInfo, value: HandleValue) {
match *self {
GlobalRef::Window(ref window) => window.report_an_error(error_info, value),
- GlobalRef::Worker(_) => (),
+ GlobalRef::Worker(ref worker) => worker.report_an_error(error_info, value),
}
}
}