diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-12-13 08:07:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 08:07:26 -0700 |
commit | 76a6ea57753be420398d3eba8f313a6c98eab8c3 (patch) | |
tree | 66c95d582b711aa4f4234943f5526b98c8176210 /runtime/web_worker.rs | |
parent | 461ef6bdd80347caa12934c2c16337bc8d40d9a4 (diff) |
refactor(cli): update to new deno_core promise/call methods (#21519)
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index b669b5c2a..41e6ca4fe 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -691,7 +691,7 @@ impl WebWorker { maybe_result } - event_loop_result = self.js_runtime.run_event_loop(false) => { + event_loop_result = self.js_runtime.run_event_loop(PollEventLoopOptions::default()) => { event_loop_result?; receiver.await } @@ -706,10 +706,7 @@ impl WebWorker { id: ModuleId, ) -> Result<(), AnyError> { let mut receiver = self.js_runtime.mod_evaluate(id); - let poll_options = PollEventLoopOptions { - wait_for_inspector: false, - ..Default::default() - }; + let poll_options = PollEventLoopOptions::default(); tokio::select! { biased; @@ -741,7 +738,7 @@ impl WebWorker { self.internal_handle.terminate_waker.register(cx.waker()); - match self.js_runtime.poll_event_loop2(cx, poll_options) { + match self.js_runtime.poll_event_loop(cx, poll_options) { Poll::Ready(r) => { // If js ended because we are terminating, just return Ok if self.internal_handle.terminate_if_needed() { |