diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/lib.rs | 1 | ||||
-rw-r--r-- | cli/ops/worker_host.rs | 8 | ||||
-rw-r--r-- | cli/worker.rs | 5 |
3 files changed, 0 insertions, 14 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index a650b4d44..6fba5bda8 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -354,7 +354,6 @@ fn run_repl(flags: DenoFlags) { let result = worker.clone().await; if let Err(err) = result { eprintln!("{}", err.to_string()); - worker.clear_exception(); } } }; diff --git a/cli/ops/worker_host.rs b/cli/ops/worker_host.rs index 20ffb8eb7..58457c2e7 100644 --- a/cli/ops/worker_host.rs +++ b/cli/ops/worker_host.rs @@ -202,7 +202,6 @@ fn op_host_poll_worker( ) -> Result<JsonOp, ErrBox> { let args: WorkerArgs = serde_json::from_value(args)?; let id = args.id as u32; - let state_ = state.clone(); let future = WorkerPollFuture { state: state.clone(), @@ -211,13 +210,6 @@ fn op_host_poll_worker( let op = async move { let result = future.await; - - if result.is_err() { - let mut workers_table = state_.workers.lock().unwrap(); - let worker = workers_table.get_mut(&id).unwrap(); - worker.clear_exception(); - } - Ok(serialize_worker_result(result)) }; Ok(JsonOp::Async(op.boxed())) diff --git a/cli/worker.rs b/cli/worker.rs index 9fd70eedc..7cde56c42 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -139,11 +139,6 @@ impl Worker { } .boxed() } - - pub fn clear_exception(&mut self) { - let mut isolate = self.isolate.try_lock().unwrap(); - isolate.clear_exception(); - } } impl Future for Worker { |