aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/worker.rs')
-rw-r--r--components/script/dom/worker.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs
index d399c9687b4..435de83ecff 100644
--- a/components/script/dom/worker.rs
+++ b/components/script/dom/worker.rs
@@ -186,20 +186,20 @@ impl Runnable for WorkerMessageHandler {
}
}
-pub struct WorkerEventHandler {
+pub struct SimpleWorkerErrorHandler {
addr: TrustedWorkerAddress,
}
-impl WorkerEventHandler {
- pub fn new(addr: TrustedWorkerAddress) -> WorkerEventHandler {
- WorkerEventHandler {
+impl SimpleWorkerErrorHandler {
+ pub fn new(addr: TrustedWorkerAddress) -> SimpleWorkerErrorHandler {
+ SimpleWorkerErrorHandler {
addr: addr
}
}
}
-impl Runnable for WorkerEventHandler {
- fn handler(self: Box<WorkerEventHandler>) {
+impl Runnable for SimpleWorkerErrorHandler {
+ fn handler(self: Box<SimpleWorkerErrorHandler>) {
let this = *self;
Worker::dispatch_simple_error(this.addr);
}