summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-12 15:21:17 -0400
committerGitHub <noreply@github.com>2022-08-12 15:21:17 -0400
commit8eed24cd3d9cea5179c65e43d23fbf6cf4d873ca (patch)
tree3047d60a9f8e972a601de011460dee151ad4c558 /cli/proc_state.rs
parentee2f4e745c33797ac9fd20571e77cef73ea585bf (diff)
fix(coverage): ensure coverage is only collected in certain situations (#15467)
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r--cli/proc_state.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index 4d9a4a779..590e6a3c9 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -51,7 +51,6 @@ use deno_runtime::permissions::Permissions;
use import_map::ImportMap;
use log::warn;
use std::collections::HashSet;
-use std::env;
use std::ops::Deref;
use std::path::PathBuf;
use std::sync::Arc;
@@ -64,7 +63,6 @@ pub struct ProcState(Arc<Inner>);
pub struct Inner {
pub dir: deno_dir::DenoDir,
- pub coverage_dir: Option<String>,
pub file_fetcher: FileFetcher,
pub options: Arc<CliOptions>,
pub emit_cache: EmitCache,
@@ -176,11 +174,6 @@ impl ProcState {
let maybe_inspector_server =
cli_options.resolve_inspector_server().map(Arc::new);
- let coverage_dir = cli_options
- .coverage_dir()
- .map(ToOwned::to_owned)
- .or_else(|| env::var("DENO_UNSTABLE_COVERAGE_DIR").ok());
-
// FIXME(bartlomieju): `NodeEsmResolver` is not aware of JSX resolver
// created below
let node_resolver = NodeEsmResolver::new(
@@ -220,7 +213,6 @@ impl ProcState {
Ok(ProcState(Arc::new(Inner {
dir,
- coverage_dir,
options: cli_options,
emit_cache,
emit_options_hash: FastInsecureHasher::new()