mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
parent
ff8739d05f
commit
ffa7cf54d8
1 changed files with 10 additions and 3 deletions
|
@ -756,9 +756,16 @@ impl WebWorker {
|
|||
return Poll::Ready(Err(e));
|
||||
}
|
||||
|
||||
panic!(
|
||||
"coding error: either js is polling or the worker is terminated"
|
||||
);
|
||||
// TODO(mmastrac): we don't want to test this w/classic workers because
|
||||
// WPT triggers a failure here. This is only exposed via --enable-testing-features-do-not-use.
|
||||
if self.worker_type == WebWorkerType::Module {
|
||||
panic!(
|
||||
"coding error: either js is polling or the worker is terminated"
|
||||
);
|
||||
} else {
|
||||
eprintln!("classic worker terminated unexpectedly");
|
||||
Poll::Ready(Ok(()))
|
||||
}
|
||||
}
|
||||
Poll::Pending => Poll::Pending,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue