summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2020-09-28 18:22:29 +0800
committerGitHub <noreply@github.com>2020-09-28 12:22:29 +0200
commit6587d1bce80fe6beef7353efcf00a674438e6e4e (patch)
tree81fb39591a8593b06cd91c18d31f6409ffcb5868 /cli/worker.rs
parent45d4fd44c9444241a898d3075b99e8871fccdd65 (diff)
fix(cli/test): do not start inspector server when collecting coverage (#7718)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index f6c518d0c..242a2f4b3 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -134,6 +134,8 @@ impl Worker {
&mut isolate,
Some(inspector_server.clone()),
))
+ } else if global_state.flags.coverage {
+ Some(DenoInspector::new(&mut isolate, None))
} else {
None
};